Parsing S-Expressions in Python

adinsa picture adinsa · Jul 6, 2010 · Viewed 7.8k times · Source

Are there any python modules available for parsing and manipulating symbolic expressions in Python similar to how Lisp expressions are evaluated?

Answer

Alex Martelli picture Alex Martelli · Jul 6, 2010

pyparsing (dead link - but see github: pyparsing) comes with an S-expression parser as an example, see here.