Minilang is a little programming language developped as part of the INF5000 (compiler theory) class at UQAM.
- Compile Nit (refer to http://nitlanguage.org/)
- Compile the interpreter with nitg :
$PATH_TO_NIT_DIR/bin/nitg minilang_interpreter.nit
- Execute a small script
./minilang_interpreter -e "def foobar(int a) { return a*a; } print(foobar(10));"
- Compile Nit (refer to http://nitlanguage.org/)
- Compile the interpreter with nitg :
$PATH_TO_NIT_DIR/bin/nitg minilang.nit
- Compile a small script to Python
./minilang -e 'print("Hello World!")'
- Execute the python script:
python out.py