A x86_64 assembly compiler for an experimental programming language. The syntax is inspired from LISP S-Expression.
- Simple Expression
(add 3 4)
- Expression with block
(while a)
{
(dec a)
}
cmake -S . -Bbuild -GNinja
ninja -C build/
./build/bolt ./examples/07_func2.bolt
example.bolt
(defun main)
{
(let a 42)
(inc a)
(print a)
}
$ ./build/bolt example.bolt
$ ./make.sh
43
$ echo $?
0