parser and tokenize modules: sample code?
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:
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