Python implementation of Parsec?

后端 未结 6 1421
名媛妹妹
名媛妹妹 2021-02-19 11:17

I recently wrote a parser in Python using Ply (it\'s a python reimplementation of yacc). When I was almost done with the parser I discovered that the grammar I need to parse re

6条回答
  •  忘掉有多难
    2021-02-19 11:38

    An option you may consider, if an LL parser is ok to you, is to give ANTLR a try, it can generate python too (actually it is LL(*) as they name it, * stands for the quantity of lookahead it can cope with).

提交回复
热议问题