Skip to content

Matthew-Craig01/TempTing-Parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published