llvm based toy programming language
Luna
d235ce0d13
codegen pass needs type information about the variable. thankfully, analyze pass already did the hard work for it, and scope info has types of all its declared names. we use that info to generate the alloca to have information about which current scope we are, we add a "child index" to scopes so we can repoint current context at them instead of bumpScope(), which always creates new, empty ones. initializer exprs are next |
||
---|---|---|
examples | ||
src | ||
.gitignore | ||
build.zig | ||
LICENSE | ||
README.md |
rayoko
a toy programming language and compiler
this time it'll work i promise it wont be like vig plrease
instal
git clone https://gitdab.com/luna/rayoko
cd rayoko
zig build install --prefix ~/.local/
use
rayoko examples/hello.ry # outputs to outpath.o
gcc outpath.o examples/hello.c -o hello
./hello