Top "Bison" questions

Bison is the GNU parser generator.

Reforming the grammar to remove shift reduce conflict in if-then-else

How do I remove shift-reduce conflict for bison for the given grammar? selection-stmt -> if ( expression ) statement | if ( expression ) …

bison shift-reduce-conflict
GCC says "syntax error before numeric constant" in generated header file from bison

When I compile my .y file with bison parser.y -d -t and then include the parser.tab.h file …

gcc enums bison flex-lexer
How does flex support bison-location exactly?

I'm trying to use flex and bison to create a filter, because I want get certain grammar elements from a …

bison flex-lexer
Include struct in the %union def with Bison/Yacc

I am trying to include a struct as part of the union with Bison, but I get an error on …

c yacc bison
bison end of file

If I forget to put an empty line at the end of any of my files my program gets a …

yacc bison lex eof
Why does my Mac (OS X 10.7.3) have an old version (2.3) of Gnu Bison?

The version of GNU Bison on my mac is 2.3 but I know that Bison 2.5 was released long ago. The book …

macos gnu bison
Is there a Sublime Text Syntax for Flex and Bison?

I'm looking for a syntax in Sublime Text that highlights my Flex and Bison files (or lex/yacc) in a …

sublimetext2 bison yacc lex sublimetext3
Getting: warning, rule cannot be matched

I am working on building a lexical and syntax analyzer. I am getting the following warning when I try to …

bison yacc lex flex-lexer
How to pass the yytext from the lex file to yacc?

Please i am facing a simple problem.. here is the issue, In my lex file i have something similiar to: …

yacc bison lex
Start states in Lex / Flex

I'm using Flex and Bison for a parser generator, but having problems with the start states in my scanner. I'm …

parsing bison lex lexical-analysis flex-lexer