This is a typed interpreter for the Silverware programming language implemented in Erlang. It is using the knife parser combinator library as the parser for the language.
To execute the program you do:
nix-shell
rebar3 shell
Next, you need a Silverware file (.sw) with code that you want to evaluate. You can have Emacs support evaluating the file editor/silverware-mode.el There are some samples in the examples folder. In the shell, proceed with:
spoon:main(<PATH_TO_SAMPLE_FILE>).
Here it is an example of output:
Erlang/OTP 24 [erts-12.2] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]
Eshell V12.2 (abort with ^G)
1> spoon:main("examples/advanced.sw").
SPOON| {literal, {integer, 60}}
ok
- EduardoLR10
- ribeirotomas1904
- MMagueta