Giter Club home page Giter Club logo

Comments (1)

GerHobbelt avatar GerHobbelt commented on June 10, 2024

This particular grammar was copied from a paper/book to test against Jison and doesn't necessarily compile/work-as-expected.

This type of activity will happen more often, so Jison has been augmented to provide a slightly better error report:

$ node dist/cli-cjs.js  --main  examples/test-ll2-arrows-fail.jison
W:\Users\Ger\Projects\sites\library.visyond.gov\80\lib\tooling\jison\dist\cli-cjs.js:26664
            throw err;
            ^

JisonParserError:
rule id should be followed by a colon instead of an arrow:
please adjust your grammar to use this format:

    rule_id : terms  { optional action code }
            | terms  { optional action code }
            ...
            ;

  Erroneous area:
38: S → G;
^^....^
39:
40: G → P

    at Object.parseError (...\jison\dist\cli-cjs.js:21184:15)
    at Object.yyError (...\jison\dist\cli-cjs.js:21343:25)
    at Object.parser__PerformAction (...\jison\dist\cli-cjs.js:19293:14)
    at Object.parse (...\jison\dist\cli-cjs.js:22544:40)
    at Object.parse (...\jison\dist\cli-cjs.js:25426:23)
    at autodetectAndConvertToJSONformat (...\jison\dist\cli-cjs.js:26617:32)
    at new Jison_Generator (...\jison\dist\cli-cjs.js:34893:15)
    at Object.generateParserString (...\tooling\jison\dist\cli-cjs.js:35435:25)
    at processInputFile (...\tooling\jison\dist\cli-cjs.js:35350:30)
    at Object.cliMain [as main] (...\tooling\jison\dist\cli-cjs.js:35428:13)

from jison.

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.