https://github.com/sharparam/clox
C implementation of Lox
https://github.com/sharparam/clox
hacktoberfest
Last synced: 4 months ago
JSON representation
C implementation of Lox
- Host: GitHub
- URL: https://github.com/sharparam/clox
- Owner: Sharparam
- License: mit
- Created: 2018-07-15T23:47:55.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2023-12-01T17:30:04.000Z (over 2 years ago)
- Last Synced: 2025-04-03T17:22:33.952Z (about 1 year ago)
- Topics: hacktoberfest
- Language: C
- Homepage:
- Size: 56.6 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# clox
A C implementation of the Lox language.
The implementation follows part III of [the book][book] by [munificent][].
## Usage
Launch it via `./build/clox` from the root of the repo after building it. Passing no arguments will start the REPL.
Pass a file as an argument to execute the file: `./build/clox myfile.lox`
For a description of some options available, run it with the `-h` or `--help` option.
## Building
Generate build files with [Meson][meson] and then build as you're used to.
If you're on Linux with Meson installed:
```
$ ./build.sh
```
## License
Copyright (c) 2018-2022 by Adam Hellberg.
This project is licensed under the [MIT License][mit], following the [main repo][main] licensing the code part under MIT.
See the file `LICENSE` for more information.
[book]: http://www.craftinginterpreters.com/
[munificent]: https://github.com/munificent
[mit]: https://opensource.org/licenses/MIT
[main]: https://github.com/munificent/craftinginterpreters
[meson]: https://mesonbuild.com/