[antlr-interest] This is driving me crazy .. please help !
Gavin Lambert
antlr at mirality.co.nz
Fri Apr 4 14:34:12 PDT 2008
At 10:20 5/04/2008, Ymo wrote:
>Can you explain how this would be done ? So far i have been using
>antlrworks. But as soon as i started putting in my own AST in (
>like calling my own functions from the parser) antlrworks cannot
>grok it. Is there a different way to see all the tokens the lexer
>is seing beside using antlrworks ?
ANTLRworks can't help you with lexer trouble at all. You need to
write a test harness in your target language; either something
simple that just creates a lexer and token stream and dumps all
the tokens to the screen, or something that uses a unit testing
framework such as JUnit, NUnit, or CppUnit. Another option is to
try using gUnit, but I'm not sure how far along that is.
More information about the antlr-interest
mailing list