Chevrotain/chevrotain
View on GitHub ↗ ★ 2,817 TypeScript
Parser Building Toolkit for JavaScript
18 mentions on Hacker News by 2 people: 5 stories, 13 comments · first 2016-03-07 · latest 2020-03-05
20082026
-
…parsers, being Lazy I've created a library to assist in hand-rolling a recursive decent parser: https://github.com/SAP/chevrotain
comment by bd82 · 2020-03-05 · in Why not to use (f)lex, yacc or bison -
You can find it At: https://github.com/SAP/chevrotain
comment by bd82 · 2019-12-12 · in Write a parser with JavaScript -
…Toolkit (for JavaScript) which I believe fulfills 7/10 of the requirements described. Chevrotain - https://github.com/SAP/chevrotain The list of features can be found here: - https://sap.github.io/chevrotain/docs/features/blazing_fast....…
comment by bd82 · 2019-03-08 · in Dreaming of a Parser Generator for Language Design -
…for an alternative to standard parser generators you may wish to have a peek at Chevrotain. * https://github.com/SAP/chevrotain Instead of using an abstraction of a declarative grammar definition and code generation to provide an…
comment by bd82 · 2018-11-07 · in Owl: Parser generator for visibly pushdown languages -
Maybe this example will help? https://github.com/SAP/chevrotain/blob/master/examples/gramm... It is implemented using a parsing library so the lookaheads are automatically performed by the library, but the general pattern is still…
comment by bd82 · 2018-05-09 · in Ask HN: Writing a recursive descent parser for arithmetic expressions -
…two libraries that support Error Recovery: Antlr4 - https://github.com/antlr/antlr4 Chevrotain - https://github.com/SAP/chevrotain (disclaimer - I'm the author of Chevrotain)
comment by bd82 · 2017-10-17 · in Ohm: Parsing Made Easy -
…and a parser generator. TLDR: See the JavaScript Parsing DSL library (Chevrotain) I've authored: https://github.com/SAP/chevrotain Details: A Parsing DSL means using API similar to hand building a parser but without a-lot of the cruft…
comment by bd82 · 2017-08-15 · in Writing parsers like it is 2017 -
…to create hand built parsers. as opposed to a library that generates a parser for you. * Repo: https://github.com/SAP/chevrotain * Online Playground: http://sap.github.io/chevrotain/playground/ This handles the repetitive parts such as…
comment by bd82 · 2017-03-21 · in Show HN: How to write a recursive descent parser -
feature set looks very similar to https://github.com/SAP/chevrotain would be good to have a comparison EDIT: actually there is one [1], and it includes Nearley which does quite poorly. [1] http://sap.github.io/chevrotain/performance/
comment by leeoniya · 2017-01-22 · in Nearley – Parser toolkit for JavaScript -
…(contributions are welcome :) ) There is one bigger (but incomplete example) of ECMAScript 5.1. https://github.com/SAP/chevrotain/blob/master/examples/types... It is written in Typescript. About LaTex: I'm not familiar with LaTex, However…
comment by bd82 · 2016-03-08 · in Show HN: Chevrotain – Fault-Tolerant JavaScript Parsing DSL -
…always LL(1) You also won't have many issues as you can define your own custom lookahead. Example: https://github.com/SAP/chevrotain/blob/master/examples/custo... If you are trying to parse a language that is nearly always NOT LL(1) You…
comment by bd82 · 2016-03-08 · in Show HN: Chevrotain – Fault-Tolerant JavaScript Parsing DSL -
…have to extract that error position information and highlight it using codeMirror's APIs. example: https://github.com/SAP/chevrotain/blob/gh-pages/playground/e... Chevrotain is not aware of codeMirror/ACE or any other Editor frameworks. It…
comment by bd82 · 2016-03-08 · in Show HN: Chevrotain – Fault-Tolerant JavaScript Parsing DSL -
…you may have to play around with minification options regarding name mangling. Example: https://github.com/SAP/chevrotain/blob/master/gruntfile.js#L... I will document this clearly in an FAQ... If you are referring to the Chevrotain…
comment by bd82 · 2016-03-08 · in Show HN: Chevrotain – Fault-Tolerant JavaScript Parsing DSL