Open AiStudent opened 2 months 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.
Error: python-ply has been disabled because it does not meet homebrew/core's requirements for Python library formulae! It was disabled on 2024-08-15.
SLY is the more modern project and has more interesting features (such as recently added support for some EBNF grammar extensions). PLY was originally written in 2001 ... there will be no future pip-installable version of PLY. So, if people want to use it, they'd need to copy the code here.
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
Alternatives?
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: