|
|
||
|---|---|---|
| .. | ||
| sls | ||
| tests | ||
| .gitignore | ||
| README.md | ||
| pyproject.toml | ||
| requirements-dev.txt | ||
README.md
SLS Python
This directory contains a minimal Python project skeleton intended to reimplement
functionality from the C SLS project found at the repository root.
Layout
src/sls/— Python package with module skeletons:lexer,parser,interpreter,builtin,repl, andcli.tests/— pytest tests (start withtest_import.py).pyproject.toml— project metadata andslsconsole script entrypoint.requirements-dev.txt— developer/test tools.
Quick start
Create a venv and install editable package + dev requirements:
python -m venv .venv
source .venv/bin/activate
pip install -e SLS_Python
pip install -r SLS_Python/requirements-dev.txt
Run tests:
pytest -q
Run the REPL:
sls repl
Next steps (suggested)
- Port
lexer.ctosrc/sls/lexer.pyand add comprehensive tokenization tests. - Port
parserandinterpreterincrementally, keeping tests for parity. - Add CI (GitHub Actions) and type checking (
mypy).
If you want, I can now:
- Run the tests in this environment (if you want me to configure the Python env), or
- Start porting a specific module from the C implementation (lexer is a good first target).