This is a read-eval-print loop (REPL) for the Minilang λ-calculus interpreter.
Click the
icon to connect to the interpreter. Once connected, the input box border will turn green.
Type your Minilang commands into the input box and press Enter to execute them. The results will be displayed below. Available commands can be found by typing :help, the most important ones being:
:help:clear:env:lang languageUntyped or Typed.
By default the REPL is interpreting the untyped version.To disconnect from the interpreter, click the
icon. The input box border will turn red.
The left hand panel is a "terminal" for entering whole programs. Once you're happy with your program you can click on the Send button, the program will be sent as is to the server and its evaluation result will appear below the command panel.
The syntax is based on s-expressions, e.g. like LISP, Scheme or Clojure. The semi-formal grammar of expressions (or <term>) is given by the following rules:
<symbol>(<term> <term>+)(lam (<symbol>+) <term>)Beside expressions which are evaluated, one can enter definitions which augment the current environment and can be referred to by later expressions or definitions
(def <symbol> <term>)symbol to term in the current environment