Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 796 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 796 Bytes

clam

Functional, bytecode interpreted language written in C

Usage Instructions

Build

# Release
meson setup builddir/release --buildtype release -Db_lto=true
meson compile -C builddir/release

# Debug
# You may also use "--buildtype=debug" but this causes weird `_FORTIFY_SOURCE` warnings with clang18Stdenv.
meson setup builddir/debug --buildtype debugoptimized -Db_sanitize=address,undefined
meson compile -C builddir/debug

Run

./builddir/{debug,release}/clam

Credits

The design and implementation of this interpreter is heavily inspired by Clox (from Crafting Interpreters), massive props to Bob Nystrom for writing such a useful book.