language

A fast PEG parser written in JavaScript with first class errors (by tolmasky)

language reviews and mentions

Posts with mentions or reviews of language. We have used some of these posts to build our list of alternatives and similar projects.
  • The Packrat Parsing and Parsing Expression Grammars Page
    1 project | news.ycombinator.com | 21 Feb 2022
    I’m an implementation I made ages ago, I created a different operator, the “naughty or”, which defines “invalid” syntax paths (for example, if the entire parse fails, allow going into the branch that does match identifiers that start with a number). This adds a language-level facility for a strategy I see most hand-rolled parsers end up in, which is to start parsing common mistakes to be able to provide better errors. It’s basically “free” because those paths are only explored if the parse is known to fail, so performance of successful parses isn’t affected, and allows the same level of “craft” in error messages as a hand-rolled one. It also allows people to easily submit patches to improve confusing errors they’ve gotten.

    https://github.com/tolmasky/language

Stats

Basic language repo stats
1
410
10.0
over 11 years ago

tolmasky/language is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of language is Objective-J.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com