Skip to content

Sharparam/clox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clox

A C implementation of the Lox language.

The implementation follows part III of the 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 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, following the main repo licensing the code part under MIT.

See the file LICENSE for more information.