[antlr-interest] Re: Nondeterministically blind
Edward Povazan
epovazan at telus.net
Mon Dec 10 09:31:54 PST 2001
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/
More information about the antlr-interest
mailing list