BNFC / bnfc

BNF Converter
http://bnfc.digitalgrammars.com/
586 stars 165 forks source link

Python backend #485

Open AiStudent opened 2 months ago

AiStudent commented 2 months ago

Python backend using Python Lex Yacc, PLY.

1 - Requires python3.10+ and ply.

2 - Getting started documentation added to docs/user_guide.rst.

3 - I'll not pledge to be an active maintainer for 3 years, but who really knows.

4 - Questions (especially tricky or critical) are welcome.

Testsuite results: The example grammars work. The regression tests yield:

andreasabel commented 17 minutes ago

@AiStudent Thanks for this PR. My apologies for not evaluating it earlier. I checked it out now and try to experiment with it. But the dependency ply seems hard to install, and looks badly maintained already.

It does not seem wise to add a new backend for a parser generator that is already phased out.

Could you instead target a parser generator that has a more promising future?

SLY by the same author also does not seem well-maintained, there is no release to the Python package repo: https://pypi.org/project/sly/

CC @aarneranta

andreasabel commented 4 minutes ago

Alternatives?