Skip to content

mascarenhas/lpegts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The beginnings of a parser generator for labeled PEGs, using TypeScript, for TypeScript.

Right now mostly a proof of concept that generates a TypeScript parser from a parser description (an AST built from parser combinators). Uses exceptions to backtrack, and a capture model similar to the one of LPEG for extracting and building results from the input.

Builtin support for error recovery through resynchronization, right now any repetition can be a resynchronization point. The idea is that on a syntax error the input is advanced to a synchronization token (using a recovery parsing expression), and then a synchronization error is thrown that lets the parser continue on a synchronization point.

About

Labeled PEG Parser Generator for TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published