Lox is a dynamically-typed, object-oriented programming language with a focus on simplicity and flexibility. I've written this code Using the Book Crafting Interpreters by Bob Nystrom Designed in Java (Jlox). Designed to be lightweight and easy to use, Lox is perfect for developers who want to experiment with scripting or dive into language design concepts. It runs on Python 3.12 and is currently under active development.
- Dynamic Typing: Variables are not restricted by type, providing flexibility in coding.
- Minimal Syntax: Clean, readable code with minimal boilerplate.
- Object-Oriented: Supports classes and inheritance, making it ideal for modular programming.
- Interpreted: Lox runs without the need for compilation, allowing for rapid testing and debugging.
Lox is still in development. We are actively improving the language and its interpreter. Feedback, issues, and contributions are welcome!
- Python 3.6 or higher
python -m lox
Enter exit
or press Ctrl+D to leave.
python -m lox path/to/file
Contributions are encouraged! If you’d like to contribute:
- Fork the repository.
- Create a new branch for your feature or bugfix.
- Submit a pull request with a clear description of the changes.
This project is licensed under the MIT License. Please see the LICENSE
file for details.