Clox is a lightweight, interpreted programming language inspired by Lox from the book "Crafting Interpreters" by Robert Nystrom. It is designed to be simple yet powerful, making it an excellent tool for learning about interpreters and language design.
- Simple Syntax: Easy to read and write, making it accessible for beginners.
- Dynamic Typing: Types are checked at runtime, providing flexibility.
- Garbage Collection: Automatic memory management to prevent memory leaks.
- Standard Library: Includes a set of built-in functions for common tasks.
- Ensure you have Git installed.
- A C++ compiler (e.g., GCC, Clang).
-
Clone the repository:
git clone https://github.com/yourusername/clox.git cd clox
-
Build the interpreter:
make
Run Clox:
./bin/clox