bison
Resolving ambiguous grammar without resorting to GLR-Parser
I have a grammar that has two different possibilities when parsing \'if\' expr \'then\'. There\'s a simple \"assignment\", such as if foo then bar=1; else bar=0;then there\'s what I\'m calling an \"if[详细]
2023-01-28 21:22 分类:问答bison: How does one solve the Varname&Varname reduce/reduce problem?
Lets say you are writing a C++ like language and you allow references int& i You also开发者_JAVA技巧 allow bitwise ands[详细]
2023-01-27 17:14 分类:问答Parsing C/C++ source: How are token boundaries/interactions specified in lex/yacc?
I want to parse some C++ code, and as a guide I\'ve been looking at the C lex/yacc definitions here: http://www.lysator.liu.se/c/ANSI-C-grammar-l.html and http://www.lysator.liu.se/c/ANSI-C-grammar-y.[详细]
2023-01-27 04:59 分类:问答How can I parse a C string (char *) with flex/bison?
开发者_高级运维In my programming project I want to parse command line attributes using flex/bison. My program is called like this:[详细]
2023-01-27 04:11 分类:问答Trouble building gcc 4.6: undefined reference to `yylex'
I\'m trying to build gcc 4.6, but I\'m getting some linker errors that look like it means bison or flex isn\'t getting linked to. When the makefile issues this command:[详细]
2023-01-26 20:59 分类:问答bison: one error causes additional but incorrect error
In the class section of my code, if I write an error a few lines will be reported as errors when they should not. I put \'| error\' in certain locations where it\'s good/safe to recover from errors bu[详细]
2023-01-26 14:44 分类:问答Bison derivation order
Hi I\'m using bison for a school project, but I\'m having an problem i got the next rules: callsubrotina : callfunction | callprocedure;[详细]
2023-01-25 22:45 分类:问答Separating reserved identifiers in flex
I have a language I am making a parser for which contains function calls. A few function names are reserved and I would like to handle them differently in my grammer. In EBNF it would look like[详细]
2023-01-24 12:16 分类:问答How to get yacc/bison and lex/flex to pause file scanning?
Im trying to parse a file using Bison/Yacc but i want to pause the parsing for a while. The reason i want to do this is that i want to process a huge file sequentially and simulate a java iterator usi[详细]
2023-01-24 04:48 分类:问答request for member in something not a structure or union
I\'ve been working for hours and I can\'t figure out how to print the token from the bison file, the bison file is thi开发者_如何学Pythons: (it\'s a short simple file)[详细]
2023-01-16 00:41 分类:问答