Giter Club home page Giter Club logo

Comments (7)

dram avatar dram commented on June 30, 2024

It seems that it's caused by old version of Bison (2.7 in CentOS 7), which do not include macro definitions for those constants (only enum definition is included), but util/ncgg/cvtkeywords relys on those macros to work properly.

from ack.

dram avatar dram commented on June 30, 2024

Complied successfully after I change bison to byacc, I'll close this issue.

from ack.

kernigh avatar kernigh commented on June 30, 2024

Bison 3.0.4 still uses enum, not macros, for the token names. I don't use bison with ack, but this is a parse.c from Ruby:

/* A Bison parser, made by GNU Bison 3.0.4.  */
...
  enum yytokentype
  {
    END_OF_INPUT = 0,
    keyword_class = 258,
    keyword_module = 259,
    keyword_def = 260,
...

Either we should fix ncgg to work with bison, or we should document in the top-level README that yacc can't be bison.

from ack.

kernigh avatar kernigh commented on June 30, 2024

I found that Bison 3.0.4 does make the token macros, if I run it in yacc mode (bison -y). So ncgg works with bison -y.

from ack.

davidgiven avatar davidgiven commented on June 30, 2024

Are there any non-Bison yaccs still around? Could we just switch to bison -y instead?

from ack.

kernigh avatar kernigh commented on June 30, 2024

The other two flavors are Berkeley yacc and System V yacc. I am using OpenBSD's Berkeley yacc. I haven't tried System V yacc; it is part of systems like Solaris and Illumos, or in the Heirloom tools.

I don't see any reason to switch to bison -y.

from ack.

deevans avatar deevans commented on June 30, 2024

I built the current github tree on RHEL 7 with no problem.

Visit http://oberon07/dee/ and click on RPMs for an RPM you can install.

from ack.

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.