[antlr-interest] question about variable assignment in grammars

Olivier Lefevre lefevrol at yahoo.com
Tue Jan 29 07:24:48 PST 2008


> You can. In some cases it's just personal preference. However, if
> a rule refers to another rule more than once then you need to use
> variables to differentiate between the occurrences. 

OK.

> I agree that it doesn't fit the definition of an atom. I'd never heard
> the word "legerdemain" before. You caused me to look it up, so now I
> know. ;-) "skillful use of one's hands when performing conjuring
> tricks; deception; trickery"

Look up "cavalier" as well ;-) I meant it here in a linguistic sense,
as in: "an abuse of language".

-- O.L.



More information about the antlr-interest mailing list