A simple interpreter for symbolic expressions which runs in the browser. The goal is to implement the core of a lambda language.
Just visit the GitHub page for this interpreter, using the link above, and start coding in your browser!
You can compute 1 + 2 with:
> ((+ 1) 2)
3and 1 + (2 * 3) with:
> ((+ 1) ((* 2) 3))
7Currently, all functions are only available in curried form, so they take only one function argument at a time. Applying a function to two arguments requires two, nested, function applications, hence the extra parentheses.
You can get the full list of available commands in the 'help' menu of the interpreter. You can also take a look at this brief introduction to symbolic expressions.
sudo apt install nodejs npm
git clone git@github.com:mnikander/interpreter.git
cd interpreter/
npm install # install project dependencies
npm test # build and run the unit tests
npm run dev # host the HTML page locally for development, automatically reloads when source files are changedCopyright (c) 2025 Marco Nikander