Giter Site home page Giter Site logo

Comments (2)

mw66 avatar mw66 commented on July 18, 2024

BTW, is the Pegged syntax custom build?

e.g.

https://github.com/erikrose/parsimonious

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).

from pegged.

veelo avatar veelo commented on July 18, 2024

qualifiedIdentifier is a predefined parser, defined on https://github.com/PhilippeSigaud/Pegged/blob/master/pegged/peg.d#L3513. Make sure you include that file.

BTW, is the Pegged syntax custom build?

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.

from pegged.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.