dynamicsyntax is the python implementation of DyLan the Dynamic Syntax parser. It has been (vibe) translated from Java to Python by @incrementaliser, and is still under development.
You need uv and a Python that satisfies >=3.11.
- Create a virtual environment with a fixed Python version (run this in the directory where you want
.venv, e.g. the repo root for a clone):
uv venv --python 3.11 # or 3.12 or 3.13- Activate it. On Linux or macOS:
source .venv/bin/activateOn Windows, use .venv\Scripts\activate (cmd) or .\.venv\Scripts\Activate.ps1 (PowerShell).
3. Install into that environment, using the published package from PyPI:
uv pip install dynamicsyntaxFor some code examples of the parser in action, check out this notebook:
Contributions (issues, PRs, donations (spent on coffee/LLM credits!)) are very welcome! Please see CONTRIBUTING.md for more details.
Note Since this project has been translated using Cursor and tested only on Windows, there is a small chance errors exist. I would be grateful if you could report them to me through the above channels. Although, it is important to mention that some of the most critical methods here have been verified via unit tests, so there is a high chance the migration from Java has been correct so far.