[antlr-interest] how to let parser control lexer state.
Jim Idle
jimi at temporal-wave.com
Sun Apr 29 00:24:59 PDT 2007
Indeed. Perhaps, someday, the world can require that any 'new' [insert
post-modernistic interpolation of 'reality' here ;-)] languages have to
have a sane ANTLR parser as proof of their ability not to drive anyone
with any sense mad and generally propagate the idea that languages
should be 'useful' on their own terms - 'useful' being really "I can't
be bothered to learn how to do this properly, so pass me the magic
bullet". I will be the first to program the windows Vista gun gadget
control to shoot anyone deciding that indenting should be
lexically/grammatically significant on the vague justification that it
makes people format code - something that a good programmer should do
naturally anyway.
<duck>
Jim
-----Original Message-----
From: antlr-interest-bounces at antlr.org
[mailto:antlr-interest-bounces at antlr.org] On Behalf Of Randall R Schulz
Sent: Saturday, April 28, 2007 4:09 PM
To: antlr-interest at antlr.org
Subject: Re: [antlr-interest] how to let parser control lexer state.
On Saturday 28 April 2007 16:04, Loring Craymer wrote:
> ...
>
> > > Nasty problem. It is amazing how often really bad
> > > ideas are adopted.
> >
> > And yet, there is more!
> >
> > ...
> >
> > Naturally, the syntax is also sensitive to
> > whitespace on either side of
> > the '<<' :-)
This is what happens when pet languages escape their creators and become
feral...
RRS
More information about the antlr-interest
mailing list