[antlr-interest] Re: Questions about learning ANTLR
micheal_jor
open.zone at virgin.net
Fri Oct 4 16:13:49 PDT 2002
Sorry to butt in Richard but I had a few questions once I read your
post.....
> In general, the tokens { } section is for literal
> strings that occur in the stream exactly as specified, or for
imagninary
> tokens required to construct a abstract syntax tree (AST).
What about keywords?. I wondered why the java.g for example didn't
define keywords like "class", "final" etc as tokens.
> When I was developing my parser, I would make one simple change at a
> time, build the parser, execute a my junit test suite. I created an
ant
> build.xml script that made this simple.
How do you use junit to test a parser?. Care to share more details on
this please?.
Cheers!
Micheal
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list