Another JavaScript interpreter written on Python 3.
- ANTLR 4
- Colorama
To run tests:
- pytest
You can get ANTLR here, other dependencies could be installed with pip:
pip install -r requirements.txt # Use requirements-dev.txt if you want to run tests
antlr4 -Xexact-output-dir -o jasminesnake/lex -package lex -Dlanguage=Python3 -listener grammars/*.g4
python -m jasminesnake
# Running with -s is optional
python -m pytest -s
ESTree specification: https://github.com/estree/estree/
JavaScript grammar source: https://github.com/antlr/grammars-v4/tree/master/javascript/javascript
The snake: https://textart.io/art/lnl9xe1OsKIow7xPGeWDrAeF/snake