A vector based programming language
compiler/
- a Java based compiler for the languageexamples/
- example programs in the languagevm/
- a C virtual machine for the language
- Run
make all
to make the compiler and vm. - Run
java -jar build/compiler.jar {path/to/source.vec} {path/to/compile/to}
(replace with real paths) - Run
build/vm {path/to/binary}
(where path/to/binary is the path previously compiled to)
In order to do basic optimizations, run java -jar build/compiler.jar {path/to/source.vec} {path/to/compile/to} -o
These include
- replace operations on literals with result
- place literal vector in static memory
If the VM is run as build/vm {path/to/binary} --debug
, then the VM will print the instruction and stack / heap dumps after each instruction
- C-Style Syntax
- Variables
- Functions
- Indexing
- Multidimensional Arrays
- Typing
- Printing