https://github.com/rwaskiewicz/clox
Implementation of clox from http://craftinginterpreters.com/a-bytecode-virtual-machine.html
https://github.com/rwaskiewicz/clox
Last synced: 10 months ago
JSON representation
Implementation of clox from http://craftinginterpreters.com/a-bytecode-virtual-machine.html
- Host: GitHub
- URL: https://github.com/rwaskiewicz/clox
- Owner: rwaskiewicz
- Created: 2020-06-21T21:46:10.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-16T23:45:48.000Z (about 5 years ago)
- Last Synced: 2025-03-26T23:03:40.199Z (over 1 year ago)
- Language: C
- Size: 357 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clox
My implmentation of Crafting Interpreter's lox language in C (Pt 3 of the book)
## Compiling
```
gcc -o clox main.c chunk.c compiler.c debug.c memory.c object.c scanner.c table.c value.c vm.c
```
## Testing
To run tests against the test suite defined in the CI repo:
- `undef` debugging symbols in `common.h`
- compile your version
- pull down the latest CI repo changes
- use the names in `[test.dart]`(https://github.com/munificent/craftinginterpreters/blob/master/tool/bin/test.dart#L747)
- invoke from the CI repo
```
dart tool/bin/test.dart chap23_jumping --interpreter ../clox-2/clox
```