Parsing S-Expressions in Python [closed]

寵の児 提交于 2019-11-27 02:52:20

问题


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


回答1:


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




回答2:


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



来源:https://stackoverflow.com/questions/3182594/parsing-s-expressions-in-python

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!