Simple compiler from Instant language to JVM bytecode and LLVM bitcode.
Simple compiler of Instant language to JVM bytecode and LLVM bitcode.
First task of Compilers Construction course at MIMUW.
Instant is a simple language based on non-negative integers, arithmetical operations and variables.
Non-context grammar of this language is described in src/Instant.cf file (BNF format).
Dependencies of parser and lexer:
C++:
Type make
in main directory of repository to create two executables - insc_jvm
and insc_llvm
.
./insc_jvm foo/bar/in.ins # to compile in.ins file in foo/bar directory
generates files in.j and in.java in foo/bar directory.
./insc_llvm foo/bar/in.ins # to compile in.ins file in foo/bar directory
generates files in.ll and in.bc in foo/bar directory.