Dr-Nekoma / spoon

A typed-checked interpreter for the Silverware programming language written in Erlang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spoon 🥄

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.

External Dependencies

How to use spoon

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

Developers

  • EduardoLR10
  • ribeirotomas1904
  • MMagueta

Dr.Nekoma

Built live on twitch and archived on youtube

About

A typed-checked interpreter for the Silverware programming language written in Erlang

License:Apache License 2.0


Languages

Language:Erlang 88.5%Language:Emacs Lisp 10.9%Language:Nix 0.6%