Recursion in Python grammar

Magnus L. Hetland mlh at idt.ntnu.no
Thu May 27 11:09:04 EDT 1999


Hi!

I'm trying to make a grammar file for ANTLR (www.antlr.org) with the
Python grammar (Has anyone done this?) I'm trying to use the rules
from the language ref directly, but I am having problem with all the
left-recursion that is everywhere... Is there a more "well-behaved"
version of the grammar somewhere, or am I just missing something
obvious? (It seems that making a parser with all that left-recursion
is a bit problematic... At least ANTLR won't accept it.)

--

  Magnus
  Lie
  Hetland        http://arcadia.laiv.org <arcadia at laiv.org>




More information about the Python-list mailing list