A toy programming language inspired by BhaiLang, developed as course project for SER502 - Languages and Programming paradigms at Arizona State University.
You may also just run ./setup.sh
and the script should tell you if you need to install any tools"
-
Install Python 3, if you do not have 3.10 install pyenv as well.
-
Install pipenv.
pip install pipenv
-
Install dependencies.
pipenv install
You can also pass file path to ./run.sh
and it should execute it for you. ex: ./run.sh ./data/basic.bl
.
-
Execute code using the parser package.
pipenv run python brolang <relative path to file>
ex:
pipenv run python brolang ./data/basic.bl
- Expression grammar heavily inspired from ANTLR's example for the C language, as our operator precedence was functionally similar to C. The example can be found here.