Parsing S-Expressions in Python [closed]

2020-02-05 04:08发布

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

2条回答
Evening l夕情丶
2楼-- · 2020-02-05 04:44

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

查看更多
一纸荒年 Trace。
3楼-- · 2020-02-05 04:55

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

查看更多
登录 后发表回答