It is highly inspired by Bob Nystroms crafting interpreters and Thorsten Balls Writing an interpreter in go
You can start the program without any arguments to get a really simple repl. Or you can add a filepath as an argument to run a file of code.
Set GOPATH properly to the starting directory. Then run make in the code directory (src/language
).
On linux, run export GOPATH=$(pwd)
, then go to the code directory cd src/language
and run the makefile make
.
To run the interpreters REPL: ./interpreter
, to run a file, run ./interpreter filepath
. For example: ./interpreter examples/project_euler_001.fml
.
Set environment variable FMLPATH
to the absolute path of src/language/corelibrary
.
- plugins (for own code wrappers and stuff)
- more tests
- lots of refactoring