This is PJP course project, focusing on compiler and interpreter development. It's based on the Project's definition.
This project utilizes ANTLR for programming language processing. It focuses on parsing specified language, ensuring syntactic correctness and thorough type checking, and generating executable stack-based instructions. The project also includes an interpreter that executes these instructions.
pip install -r requirements.txt
- antlr4
- black
- isort
- pytest
- pytest-cov
- pytest-html
- PyMarkdown
- MkDocs
- mkdocs-material
- mkdocs-minify-plugin
python main.py code.txt
- options:
-o
,--output_file
--no_output_file
-v
,--verbose
-i
,--interpret
- automatically runs virtual machine
-h
,--help
python virtual_machine.py instructions.txt
- Recompile antlr4 grammar
antlr4 -Dlanguage=Python3 language/Language.g4 -visitor