Python parser for Python-like language

后端 未结 3 1302
遥遥无期
遥遥无期 2021-02-13 16:48

I\'m looking to write a Python import filter or preprocessor for source files that are essentially Python with extra language elements. The goal is to read the source file, pars

3条回答
  •  孤街浪徒
    2021-02-13 16:59

    I like SimpleParse a lot, but I never tried to feed it the Python grammar (BTW, is it a deterministic grammar?). If it chokes, PLY will do the job.

    See this compilation about Python parsing tools.

提交回复
热议问题