[antlr-interest] languages without reserved words

Michael Brade brade at informatik.uni-muenchen.de
Fri Mar 3 06:44:48 PST 2006


On Thursday 02 March 2006 12:03, Martin Probst wrote:
> > is there a standard way or a best practice to implement grammars for
> > languages that allow identifiers to be anything, including the keywords
> > of the language itself?
>
> There are several ways, and all of them suck somehow.
Thanks, they suck rocks indeed... I decided to wait for v3, predicates are the 
only solution right now but since the grammar is quite big with a lot of 
keywords it is not worthwile to do.

Cheers,
-- 
Michael Brade;                 KDE Developer, Student of Computer Science
  |-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
  °--web: http://www.kde.org/people/michaelb.html

KDE 4: Beyond Your Expectations
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20060303/5d8ea7e7/attachment.bin


More information about the antlr-interest mailing list