Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cesarvr/interpreter
Learning how to write a interpreter in C++, using the book "Crafting Interpreters"
https://github.com/cesarvr/interpreter
Last synced: about 1 month ago
JSON representation
Learning how to write a interpreter in C++, using the book "Crafting Interpreters"
- Host: GitHub
- URL: https://github.com/cesarvr/interpreter
- Owner: cesarvr
- Created: 2023-02-11T12:26:36.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-11-13T15:47:55.000Z (about 1 year ago)
- Last Synced: 2023-11-13T16:49:28.986Z (about 1 year ago)
- Language: C++
- Size: 621 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Writing A Simple Lox Interpreter In C++
Just learning about programming language theory and implementation by following the steps of the ["Crafting Interpreters"](https://craftinginterpreters.com/) book.
## Tests
In order to make this easier I just following a test driven approach [here](https://github.com/cesarvr/interpreter/tree/main/tests).
To build the project and run the test first get `cmake` using:
```sh
brew install cmake```
And then run ``cmake`` and ``make``:
```sh
cmake . # On the root folder.
make
```I'm using the [catch2 test framwork](https://github.com/catchorg/Catch2) to generate a test binary that you can run using:
```sh
./lox_test
```