Mathematical expressions in a lispy syntax.
Test it out in the online REPL!
# Install NPM modules
yarn install --dev
# Build the code
yarn run build
# Run the example
yarn run example && node ./output/example.js
# Run the tests
yarn test
The language is lisp-like, but it only supports numbers and basic operators.
1
(+ 1 2)
(+ (- 3 4) (* 2 3))
Probably nothing. You might find it useful to learn from.
Nope! The parser is hand-written JavaScript. The REPL uses React.
To practice writing parsers!