[antlr-interest] Tokenising for context specific reserved words
Raphael Reitzig
r_reitzi at cs.uni-kl.de
Mon Jul 21 13:18:09 PDT 2008
"Gavin Lambert" <antlr at mirality.co.nz> wrote (Sun Jul 20 22:23:46 2008):
> Well, yeah, you *could* do it that way, but that seems far too
> heavyweight (and wouldn't work for the C target anyway).
Who cares about the C target? :D
One would have to analyse runtime behaviour of a class based token
model. I think it would loose because the easy use of switch-case (in
java) would no longer be possible. But, then, perhaps you could wrap
an enum around it... *phantasize*
> No, I don't think that's a good idea. Although having them as
> easily-insertable templates in ANTLRworks could be useful.
Hm, ack.
Regards
Raphael
----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: PGP Digital Signature
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20080721/87599d4e/attachment.bin
More information about the antlr-interest
mailing list