Python-based regular expression parser that allows patterns to call functions?
Paul McGuire
ptmcg at austin.rr.com
Sun Mar 2 23:21:33 EST 2008
pyparsing also includes a decorator function, traceParseAction, which
will list out calls to parse actions, the tokens passed in, and the
value returned or exception raised. If you add "@traceParseAction"
before each of the parse actions in my example, you can see the token
processing being done in the parse actions.
-- Paul
More information about the Python-list
mailing list