aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/javassist/compiler/ParseTest.java
blob: ad51155cfe5dbe1a4e5589a1567820ce2a1bee69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package javassist.compiler;

import javassist.compiler.ast.*;

public class ParseTest implements TokenId {
    public static void main(String[] args) throws CompileError {
	Parser p = new Parser(new Lex(args[0]));
	SymbolTable stb = new SymbolTable();
	// MethodDecl s = (MethodDecl)p.parseMember(stb);
	Stmnt s = p.parseStatement(stb);
	System.out.println(s == null ? "null" : s.toString());
    }
}