Pretty Scheme, ??? Python
Paul McGuire
ptmcg at austin.rr.com
Tue Jul 3 12:45:12 EDT 2007
By the way, the next release of pyparsing will allow you to shortcut
all of these .setResultsName calls, using this notation instead:
binop = ( LPAR +
oneOf("+ -")('op') +
wae('lhs') +
wae('rhs') + RPAR )
with_ = ( LPAR + "with" + LPAR +
id_('bound_id') +
wae('named_expr') + RPAR +
wae('bound_body') + RPAR )
This is implemented in the latest version in the SF SVN repository.
-- Paul
More information about the Python-list
mailing list