ocamlbuild -pkgs llvm dinosaur.native
./dinosaur.native -l example.mc > example.out
lli example.out
ast.ml
: abstract syntax tree (AST) definitionscanner.mll
: scannermicrocparse.mly
: parsersast.ml
: definition of the semantically-checked ASTsemant.ml
: semantic checkingirgen.ml
: LLVM IR code generator
test1.ml
: the file to test the scanner and parsertest2.ml
: the file to test the semantic checkermicroc.ml
: top-level file to test and run microc compilerexample.mc
: a sample microc source codeexample.out
: a sample compiled code of example.mc