Skip to content

Latest commit

 

History

History
34 lines (24 loc) · 1.04 KB

README.md

File metadata and controls

34 lines (24 loc) · 1.04 KB

TempTing

Parser

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

Install Dependencies

gleam deps download

Building the Parser

gleam build

Using the Parser

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));

Parser Evaluation

Fail Cases

Errs.org contains a formatted list of all possible parser fail cases.

Pass Cases

gleam build; node src/evaluator/script.js