1 /* Simple main() to call a parser in another file */
3 #include "tokens.h" // define TokenType
4 #include "Expr.h" // define parser
5 #include "DLGLexer.h" // define scanner
6 #include "PBlackBox.h" // Define ParserBlackBox
10 ParserBlackBox<DLGLexer, Expr, ANTLRToken> p(stdin);
12 p.parser()->e(); /* start parsing at rule 'e' of that parser */