parenthesis

Matthew Knepley knepley at mcs.anl.gov
Mon Nov 4 16:16:31 EST 2002


>>>>> ">" == Joshua Marshall <jmarshal at mathworks.com> writes:

  >> Regular expressions are not powerful enough to be used to match strings when you need to be intelligent about
  >> nesting.  There are probably parser generators available--links anyone?
  I really like PLY from David Beazley, http://systems.cs.uchicago.edu/ply.

  Matt

  >> For your particular application, also take a look at the "parser" Python module.  It's a little ugly, since it
  >> gives you complete (rather than abstract) syntax trees, but it may help you.

-- 
"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness



More information about the Python-list mailing list