Lox implementation in C, created while reading CrafitingInterpreters.
- C
- Lexical Analysis
- Parsing
- Pratt parser
- Virtual Machines
- Bytecode
- Stack based
- Hash tables
- Separate chaining
- Open addressing / Closed hashing
- Linear probing
- Collision resolution
- String interning
- Benchmarking
- Debugging with GDB
Use makefile:
make
./clox tests/language/assignment.loxDebugging:
gdb -ex run --args ./clox tests/language/local_vars_decl.lox