python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Confused regarding parsing with Bison
I'm reading "Flex & Bison" by Levine and I'm a bit confused as to how exactly the parsing takes place. For this example I'll be using these rules for a simple calculator:
exp: factor | e...
Peatherfed
Votes: 0
Answers: 1
Understanding how to resolve reduce/reduce & shift/reduce conflicts
I have the following tokens, operator precedence and grammar rules in my parser.y file:
%token <intval> INTCONST
%token <realval> REALCONST
%token <strval> STRCONST
%token <strval...
Stelios Papamichail
Votes: 0
Answers: 1
How does Bison deal with some optional part in BNF grammars?
I'm a freshman in Bison and Compiler principles, now I'm trying to write an easy Verilog parser in Flex&Bison according to the IEEE Standard. Here is the question: when a grammar's body has option...
Zhiyi
Votes: 0
Answers: 1
How to run code on start of yylex and when token is matched in RE-flex
I was using RE-flex to generate a c++ Scanner for a project. I wanted to run code when a token is matched and I followed the Flex way of doing, but that ended up putting the code outside the function....
ishaangupte
Votes: 0
Answers: 1