Mini-languages in Python

后端 未结 6 1843
长情又很酷
长情又很酷 2020-12-02 07:08

I\'m after creating a simple mini-language parser in Python, programming close to the problem domain and all that.

Anyway, I was wondering how the people on here wou

6条回答
  •  自闭症患者
    2020-12-02 07:49

    I have limited but positive experience with PLY (Python Lex-Yacc). It combines Lex and Yacc functionality in a single Python class. You may want to check it out.

    Fellow Stackoverflow'er Ned Batchelder has a nice overview of available tools on his website. There's also an overview on the Python website itself.

提交回复
热议问题