Python3 Parser Generator

I am looking for a parser generator for a fairly complex language (similar in complexity to Python itself) that works with Python3. If it can automatically generate AST, it will be a bonus, but I'm fine if it just calls the rules when parsing. I have no special requirements, and it does not have to be very efficient / fast.

+3
source share
2 answers

LEPL is not a parser generator - it's better! Parsers are defined in Python code and built at runtime (hence some inefficiency, but much easier to use). It uses operator overloading to build a fully readable DSL. Things like c = a & b | b & cfor BNF c := a b | b c..

() abritary, AST ( , , Python). , ( memoization, , " Lepl ()" ).

+3

ANTLR / Python. AST AST ( ).

ANTLR lexer ANTLR, AST Python.

+3

All Articles