An open API service indexing awesome lists of open source software.

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

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
```