This is a source-to-source compiler from setlX to Python 3. It was implemented during a one-year project for university.
The homepage for setlX can be found on http://randoom.org/Software/SetlX.
- Python >= 2.7.3
- PLY (Python Lex-Yacc)
- ast-gen (only for development)
Install them with
pip install -r REQUIREMENTS.txt
Play with it
Load the parser and start an interactive shell with
You can now use the parser variable to parse text:
>>> parser.parse("a;") ('FileAST', ('Identifier', 'a'))
Rebuild the AST classes (needs ast-gen installed):
The unit test suite can be run with