Coder Social home page Coder Social logo

error in validate_file about ply HOT 3 CLOSED

dabeaz avatar dabeaz commented on June 17, 2024
error in validate_file

from ply.

Comments (3)

bdcht avatar bdcht commented on June 17, 2024

(the same thing apply for yacc of course...+ validate_all in yacc should probably be called only if optimize is 0)

from ply.

dabeaz avatar dabeaz commented on June 17, 2024

Validation of parser specifications is an important part of PLY so I don't see this functionality being removed. Will investigate further in a future release.

from ply.

dabeaz avatar dabeaz commented on June 17, 2024

Have revisited the code for this. Error reporting is an important part of PLY that I don't want to remove. However, changing the error checking code to understand different contexts such as classes and functions (closures) is going to be difficult and error-prone. I don't think it's unreasonable to require lexers/parsers to be defined in separate source files.

I'm going to close this, but I'm going to make a comment in the documentation related to this.

from ply.

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.