This document contains the basic information about installation, setup, and project structure.
- Python 3 — required.
- pip — required for installing Python dependencies.
- Task — recommended for running project tasks.
- Java 17+ — optional, only required when regenerating parser code from the ANTLR grammar files.
Task is a tool for running project tasks.
On Windows:
winget install Task.TaskCheck that it works:
task --listMake sure Python 3 is installed and available on your system path.
Check it with:
python --versionIn most Python 3 installations, pip is already included.
Check that pip is available:
python -m pip --versionIf needed, try:
python -m ensurepip --upgradeTo install dependencies, you can run the install task:
task installOr run this command directly:
python -m pip install -e .Java is only needed if you want to regenerate parser code from the ANTLR grammar files.
Make sure you have JDK 17 or higher installed.
Check your Java version with:
java -versionTo regenerate the parser and lexer source files from the ANTLR grammar, run:
task antlrThe generated code will go into src/grammar/generated, and shall not be hand-edited since that content will get overwritten on the next generation.
Function names should follow PEP 8 naming conventions.
Exception: generated ANTLR files under:
src/yini_parser/grammar/generated/
These files are generated by ANTLR4 and should not be manually renamed or reformatted.
- Python target notes: https://github.com/antlr/antlr4/blob/master/doc/python-target.md
- ANTLR artifacts: https://repo1.maven.org/maven2/org/antlr/antlr4/