Syntax syntax = new Syntax(StandardLexerRules.lexerSyntax);
SyntaxSeparation separation = new SyntaxSeparation(syntax);
LexerBuilder builder = new LexerBuilder(separation.getLexerSyntax(), separation.getIgnoredSymbols());
Lexer lexer = builder.getLexer(input);
Parser p = new Parser(new SyntaxBuilderParserTables());
if (p.parse(lexer, new TreeBuilderSemantic())) {
TreeBuilderSemantic.Node n = (TreeBuilderSemantic.Node)p.getResult();
System.err.println("got result: "+n);
System.out.println(n.toString(0));
}
}