You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the grammar are defined using =, while here in Pegged it's using <<- etc.
Maybe one way to debug the dgrammar.d is to make it work with parsimonious, e.g. after I change all < etc to =, I have problems using parsimonious, (after remove MacroDeclaration), I got:
parsimonious.exceptions.IncompleteParseError: Rule 'rules' matched in its entirety, but it didn't consume all the text. The non-matching portion of the text begins with '/ "static" "import" ' (line 35, column 45).
PEG has no standardised syntax as far as I know, so different parser generators may use slightly different syntaxes. Pegged provides several extensions, including <.
Rule 'rules' matched in its entirety
There is no rules in dgrammar.d, so that must be specific to Parsimonious. I would guess that your translation to Parsimonious does not comply with the requirements of Parsimonious. I cannot help you there, as it's the first time I have heard of the program.
As explained in #294 (comment), dgrammar is not a very good example. I appreciate your interest in getting it to work, but its value is quite limited IMHO.
https://github.com/PhilippeSigaud/Pegged/blob/master/examples/dgrammar/src/pegged/examples/dgrammar.d#L60
How Pegged detect / report such issue? I didn't see any error message.
Can problem like this (missing definition) contribute to the performance issue #294
The text was updated successfully, but these errors were encountered: