Mini-languages in Python

后端 未结 6 1845
长情又很酷
长情又很酷 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:50

    If you ask me this now, I would try the textx library for python. You can very easily create a dsl in that with python! Advantages are that it creates an AST for you, and lexing and parsing is combined.

    http://igordejanovic.net/textX/

提交回复
热议问题