-
Grammar file:
> root -> ("not"):? "working"
Error:
> /home/uri/bot/node_modules/nearley/lib/nearley.js:167
> copy.data[copy.data.length-1] = r.postprocess([], this.reference…
uriva updated
8 years ago
-
Hi! thank you for nearley
maybe my english is very bad but please read
grammar that i'm trying to, it has many many rules, very complex,
it can finish to parse without ambiguous, but it takes 45 sec…
ayapi updated
7 years ago
-
I’ve put a quick demo implementation using pegJS for parsing. While it doesn’t currently show the full potential, I think if we do start allowing shorthands, like `border: 1px solid`, it’ll be very us…
-
Let's call Parsimmon '__P__' for short.
When thinking about how to improve P without breaking its API, we will easily get stuck.
So let's unload such burden, take a leap and __imagine__ a brand …
-
Hey,
Noticed https://github.com/Hardmath123/nearley/blob/master/lib/nearley.js#L167 doesn't pass the outer scope's `this` to `Array.prototype.map`, therefore failing in strict mode where `this` is no…
-
Given a trivial grammar, e.g.,
```
num -> _ int _ {% function(d) { return { foo: d[1] } } %}
| _ int _ "foo" {% function(d) { return { foo: d[1] } } %}
```
running through `nea…
-
Current iteration of Readme doesn't tell what exactly does snapdragon do.
It is stated it is "a factory", but there's no link to explanation what "a factory" is.
I wrote a few libraries that wor…
-
Hi,
I am getting "Error: nearley: No possible parsings". Can you please let me know what's wrong with my grammar specification below? This isn't tokenization problem is it? Also, please note that I w…
-
This grammar:
`root -> .`
doesn't match this character: א
uriva updated
7 years ago
-
When I started PEG.js about 7 years ago, I never thought it would be such a successful project and that my involvement with it would last so long. Most of the time I was happy working on it, but in th…