Skip to content

Latest commit

 

History

History
9 lines (6 loc) · 654 Bytes

README.md

File metadata and controls

9 lines (6 loc) · 654 Bytes

Part 18

Code for Part 18 of my math expression parser series at inspirnathan.com

Commands

  • 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 the tml-runner interpreter.

  • ./tml-runner example.tml | node display.js: Execute the TML program, pipe the output of example.tml into the input of display.js, and execute display.js.