12

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

adinsa
  • 129
  • 1
  • 4

2 Answers2

12

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

nealmcb
  • 12,479
  • 7
  • 66
  • 91
Alex Martelli
  • 854,459
  • 170
  • 1,222
  • 1,395
0

Also, depending on how much work with sexpressions you are doing you might want to check out python hy: https://github.com/hylang/hy

joefromct
  • 1,506
  • 13
  • 33