Which tool to use to parse programming languages in Python?

前端 未结 9 1953
情书的邮戳
情书的邮戳 2021-01-30 07:09

Which Python tool can you recommend to parse programming languages? It should allow for a readable representation of the language grammar inside the source, and it should be abl

9条回答
  •  余生分开走
    2021-01-30 07:42

    If you're evaluating PyParsing, I think you should look at funcparserlib: http://pypi.python.org/pypi/funcparserlib

    It's a bit similar, but in my experience resulting code is much cleaner.

提交回复
热议问题