peggy
peggy copied to clipboard
Peggy: Parser generator for JavaScript
Fixes #307. Adds a `GrammarLocation` class that can be used as your `grammarSource`, which specifies the offset of the grammar in a larger file. Works for errors and source maps.
A prototype for dealing with Unicode codepoints above U+FFFF. In JavaScript, you can spell these `\u{1f41d}` (U+1f41d: HONEYBEE 🐝). Added: - Identifiers and `"strings"` can use escapes like `\u{1f41d}`. For...
I would like to use a readable / non minified version of Peggy. How can I build it from source ? npm run-scripts make / build always construct a minified...
Also in `peg$SyntaxError.prototype.format` in generate-js.js. We always use `"\n"` for line endings. Although this probably *works* in modern Windows, for most cases, it's probably better to have a default second...
as the title
- [ ] #291 - [ ] #309 - [x] #315 - [x] Update dependencies #318 - [ ] Update version number in package.json. - [ ] Rebuild parser with...
Reincarnation of the https://github.com/pegjs/pegjs/pull/209. Previous attempt, closed by technical reasons: #208 This is an implementation of the ranges proposal with batteries, i.e.: - ability to use numeric constants to specify...
Draft that implements syntax for importing rules. Does not implement actual importing. Design questions should be discussed in the #239 first. I open this PR so anyone can experiment with...
In [peggy-test](https://github.com/hildjj/peggy-test) and [peggy-tag](https://github.com/peggyjs/peggy-tag), I'd like to be able to pass in a grammar location along with the grammar source, so that offset, line, and column in reported errors start...
If you want to return a single piece of your rule definition, or you want to return an array, plucking works really well. If you would like to return an...