[antlr-interest] Re: Nondeterministically blind
mzukowski at bco.com
mzukowski at bco.com
Mon Dec 10 10:05:33 PST 2001
No, I didn't ever do the entire grammar, just the whitespace part of it.
But I'd be happy to take a look at the grammar and see if I can fix some
warnings.
Monty
> -----Original Message-----
> From: Edward Povazan [mailto:epovazan at telus.net]
> Sent: Monday, December 10, 2001 9:32 AM
> To: antlr-interest at yahoogroups.com
> Subject: Re: [antlr-interest] Re: Nondeterministically blind
>
>
> Yes, thank you, I came to this conclusion when I got away
> from my computer.
> Funny how that is.
>
> I recognise your name from usenet postings relating to parsing Python
> (DEDENT/INDENT etc)
> Did you create a complete python parser? I typed in the
> grammar from the
> spec, got rid of recursive elements, but now every single
> token and its
> grandmother gives me nondeterminism warnings. They are
> correct of course,
> but is a lot of this solvable though predicates, or does one have to
> implement the grammar differently from the specs?
>
> Thanks
> -Ed
>
>
>
> ----- Original Message -----
> From: <mzukowski at bco.com>
> To: <antlr-interest at yahoogroups.com>
> Sent: Monday, December 10, 2001 8:18 AM
> Subject: RE: [antlr-interest] Re: Nondeterministically blind
>
>
> > The lexer doesn't know whether '''' would be two empty
> strings or the
> start
> > of a triple quoted string. This is genuinely ambiguous.
> Hence you need a
> > disambiguating syntactic predicate which says that if you see triple
> quotes
> > then match a long string.
> >
> > Monty
>
>
>
>
>
> Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
>
>
>
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list