Similarly to the backend, the parser is built with Gleam. However, the parser runs on Javascript, rather than Erlang. In order to run the parser, you do not need to install Gleam, however, building the project does require Gleam: instructions
gleam deps download
gleam build
For control, use the Gleam api(temp_ting.gleam, lexer.gleam, parser.gleam ) directly. For general use, the wrapper Javascript api should suffice.
import * api
api.stringify(api.parse_template(template));
Errs.org contains a formatted list of all possible parser fail cases.
gleam build; node src/evaluator/script.js