A web-based tokenizer/lexical analyzer for the Worm programming language built with Streamlit.
- Interactive code editor with syntax highlighting
- File upload support for
.worm
files - Real-time tokenization of code
- Token visualization using tables
- Dark theme code editor
This project uses pyproject.toml
for dependency management. You can use any of these package managers:
-
uv (Recommended):
uv sync
-
pip:
python -m venv venv pip install -r requirements.txt
-
poetry:
poetry install
First, activate your virtual environment:
-
On Windows:
.\venv\Scripts\activate
-
On macOS/Linux:
source venv/bin/activate
Then run the application:
streamlit run main.py
The application is built with:
- Streamlit for the web interface
- streamlit-code-editor for the code editing component
- Pandas for data manipulation and display
worm-pl/
├── main.py # Main application file
├── lexer.py # Main lexer logic
├── pyproject.toml # Project dependencies and metadata
└── README.md # This file