[antlr-interest] ANTLR 3 & hidden token management?

David Holroyd dave at badgers-in-foil.co.uk
Mon Aug 7 00:30:17 PDT 2006


On Mon, Aug 07, 2006 at 06:40:39AM +0530, Prashant Deva wrote:
> A newcomer looking at a grammar would get really confused when he sees
> channel=99.
> even something like channel=hidden would convey more information.

FWIW, I have to admit that on first reading of a couple of v3 example
grammars, I initially assumed the {channel=99;} was trying to
demonstrate something clever about placement of actions that v3
supported and v2 didn't.  It was only when I wondered about the lack of
a declaration for 'channel', and then noticed that the action always
appeared in the definition of 'WS' that the light dawned.


dave

-- 
http://david.holroyd.me.uk/


More information about the antlr-interest mailing list