parser and tokenize modules: sample code?
Michael Hudson
mwh21 at cam.ac.uk
Fri Apr 28 12:48:37 EDT 2000
Shae Erisson <shapr at uab.edu> writes:
> Can someone point me to sample code for the parser and tokenize modules?
> As Moshe Zadka says, the parser module doesn't seem easy to use. I've
> read through the example.py for the parser module, but I'd like to see
> more code if someone has some.
The file "transformer.py" from p2c takes the output of parser and
produces something easier to work with (allegedly; I've never used
it). Start with one of these links:
http://lima.mudlib.org/~rassilon/p2c/
http://www.pythonpros.com/cgi-bin/viewcvs.cgi/p2c/
HTH,
Michael
--
31. Simplicity does not precede complexity, but follows it.
-- Alan Perlis, http://www.cs.yale.edu/~perlis-alan/quotes.html
More information about the Python-list
mailing list