a minimal lisp/lua-like language
see intro.luma (or with highlighting) for an introduction to the language
to compile the compiler:
- run
./build-compiler.sh
from thesrc/
directory - the built compiler is output to
build/compile-luma-built.lua
, and any diffs frombuild/compile-luma.lua
are shown
to use in a project:
- copy
src/prelude.luma
andsrc/build/luma-compile.lua
to a new directory - compile your code with
luajit luma-compile.lua <your-source>.luma <your-output>.lua
- run your compiled code with
luajit <your-output>.lua
you can use regular lua instead of luajit, the output will differ slightly due to different string quotation behaviour
in case of an error, the raw lua backtrace is shown along with luma source locations to the right, where available
luma is still very experimental and might change a lot
some things i'd like to add:
- more tests in this repo
- more examples
- more and better error checking
- clearer class/object differentiation