[antlr-interest] if-then-else rule design question

Gavin Lambert antlr at mirality.co.nz
Fri Jun 20 02:14:46 PDT 2008


At 19:13 19/06/2008, Fridi wrote:
 >hm, I thought, in analogy to regex, the '.' just consumes
 >anything.

That's right.  Which means it can consume an entire subtree 
without actually invoking any rules for it, which is what it 
sounded like you wanted.

 >Maybe I have to change my parser grammar as well.

I'm not sure why.  You shouldn't be trying to evaluate expressions 
at the parser level.



More information about the antlr-interest mailing list