Comments (7)
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.
Complied successfully after I change bison
to byacc
, I'll close this issue.
from ack.
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.
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.
Are there any non-Bison yaccs still around? Could we just switch to bison -y instead?
from ack.
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.
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)
- Basic: read out of data issue HOT 1
- Recent version fail to compile with a sig 11 on em_m2 HOT 3
- Build error "lua: ./h/em_table_lib.lua:38: malformed pseudo line in em_table", on Ubuntu 22.04 + Lua 5.1.5, & segfault on Ubuntu 22.04 + Lua 5.2.4 HOT 3
- The 386 assembler is terrible
- Fails tests on my ArchLinux HOT 2
- cannot find DFLAGS: error building on Ubuntu 22.04.1 LTS x86_64 HOT 5
- ACK libc defines getopt () and friends, but <unistd.h> does not declare them
- make hangs at lang/m2/comp+next_c HOT 1
- how to use the compiler to build bare metal test binary for i80 HOT 2
- i80: negative case labels break switch statement
- ack (compiled with default linux386) to compile itself? HOT 1
- C23 support via Cake HOT 2
- x86_64? HOT 1
- Cannot open library file util/LLgen/lib/incl, call an expert HOT 2
- Test case failures when building for Debian (& Ubuntu) on AArch64 HOT 4
- git clone failed HOT 1
- ack make on mint linux failed
- Status of EM languages HOT 2
- Assembler doesn't export symbols properly on windows HOT 2
- make install for ack on Cygwin needs /usr/local and not c:\ack
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ack.