[antlr-interest] languages without reserved words
Bryan Ewbank
ewbank at gmail.com
Fri Mar 3 07:38:01 PST 2006
Note that the alternative for v3 said "might get solved" - no
guarantee... As a rift on stateful lexing, perhaps using two lexers
(ala java and javadoc) would allow easier partitioning of the
problem...
On 3/3/06, Michael Brade <brade at informatik.uni-muenchen.de> wrote:
> 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
>
>
>
More information about the antlr-interest
mailing list