Category "bison"

Flex and Bison compiler doesn't show lexical errors when he meets one syntax error

I'm coding a compiler using Flex and Bison, I coded yyerror(char*) and some printf() messages to show lexical and syntax errors. I tested my code by adding some

How to access FlexLexer's input function without deriving from yyFlexLexer?

I am writing a simple compiler for a simple C like language. To do that I would like to use Flex and Bison but use them both in the context of modern C++ Right

bad_alloc when attempting to print string that was assigned to member of $$ struct

During our compiler's intermediate code generation phase, and more specifically while testing the arithmetic expressions and assignment rules, I noticed that al

Friendly name for special $end token in Bison

With older versions of Bison, verbose error messages sometimes look like this: syntax error, unexpected [, expecting $end Is there a way to give $end a more us

Combining unary operators with different precedence

I was having some trouble with Bison creating an operator as such: <- = identity postfix operator with a low precedence to force evaluation of what's on the