Stackless & String-processing
Graham Matthews
graham at sloth.math.uga.edu
Fri Jul 16 11:34:13 EDT 1999
Neel Krishnaswami (neelk at brick.cswv.com) wrote:
: I think that this weekend I'm going to try and put together a basic
: version of this parsing system in Python based on the ideas in this
: paper -- basically just write a simple AST class and the combinators
: they describe. Then I can add proper support for backtracking and lazy
: evaluation and all the stuff with serious hack value when Christian
: Tismer makes continuations available to us. :)
It seems to me that you might also be able to make the regular expression
module available through this interface. All you have to do is wrap the
regular expression up in a function/object that can be combined like the
other parsers. Indeed you will need "primitive parsers" for things like
numbers, and these are really just a special case of a "primitive"
regular expression parser.
graham
--
This ain't no technological breakdown
Oh no, this is the road to hell
More information about the Python-list
mailing list