[antlr-interest] Javascript virtual semicolons
shmuel siegel
antlr at shmuelhome.mine.nu
Tue Apr 19 06:57:28 PDT 2005
Javascript 1.5, or whatever you want to call it, has a very strange
lexical rule:
If the parser ran out of alternative for the last token, back off,
insert a virtual semicolon and try again. If this works, continue, else
raise an error condition.
How do you do this in antlr?
Earlier versions of javascript have a more complicated definition of
virtual semicolon but still do the same sort of thing.
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.17 - Release Date: 4/19/2005
More information about the antlr-interest
mailing list