https://github.com/dead-tech/tek
Interpreter created following Crafting Interpreters book
https://github.com/dead-tech/tek
Last synced: over 1 year ago
JSON representation
Interpreter created following Crafting Interpreters book
- Host: GitHub
- URL: https://github.com/dead-tech/tek
- Owner: dead-tech
- License: mit
- Created: 2022-02-19T15:36:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-03-07T03:24:39.000Z (over 3 years ago)
- Last Synced: 2024-03-10T12:57:10.480Z (over 2 years ago)
- Language: C++
- Size: 113 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

# Tek
Simple interpreter created following [**Crafting Interpreters**](https://craftinginterpreters.com/contents.html) book.
## Building
- Clone repo `git clone https://github.com/dead-tech/tek.git`
- Change directory `cd tek`
- Create build directory and cd `mkdir build && cd build`
- Use CMake `cmake .. && make`
## Testing
This project utilizes a python script to run all the tests.
The script uses as default cmake target `tek`, as default compilation output directory `build` and as default tests folder `tests`.
You could change these settings via `python3 run_tests.py --build-dir BUILD_DIR || --target TARGET || --tests-dir TESTS_DIR`
- Capture test programs output from stdout once `python3 run_tests.py --capture`
- Run tests `python3 run_tests.py`
For more information checkout `python3 run_tests.py --help`