Code for Part 18 of my math expression parser series at inspirnathan.com
-
node tests
: Run a Pratt parser, that evaluates statements, for a custom programming language called Tiny Math Language (TML) against multiple test inputs. -
./tml-runner example.tml
: Execute the TML program,example.tml
using thetml-runner
interpreter. -
./tml-runner example.tml | node display.js
: Execute the TML program, pipe the output ofexample.tml
into the input ofdisplay.js
, and executedisplay.js
.