bison
Bison reduce errors. Why is it using that error placement instead of this one?
I am extremely confused. I have an error in my file and funcBodyLoop2 error aEOS is NOT used. Why? This is what is bothering me. funcBodyLoop2 has an empty rule so it can never fail. And to fail func[详细]
2023-02-09 19:31 分类:问答What does the -y/-yacc flag do in bison?
I searched the man page and found this. But... what does it mean? without it my bison file doesnt compile and i would like to know why it doesnt (admittedly i have a few shift/reduce and reduce/reduce[详细]
2023-02-09 19:29 分类:问答Can't figure out what is causing a shift/reduce errors in yacc
I\'m working on a project in yacc and am getting a shift/reduce error but I can\'t figure out why I\'m getting it. I\'ve been looking through the开发者_StackOverflow社区 y.output file but am not quite[详细]
2023-02-09 07:10 分类:问答bison/flex: Peek at the next letter or token
When dealing with strings (it has its own state like comments) i need to find out if the next letter is a \" or not. If it is i dont end the string state. So what happens is i just dont end t开发者_如[详细]
2023-02-09 06:20 分类:问答Assigning multiple data types to a non-terminal in yacc
I\'m working on a project for class in which we have to build a parser. We\'re currently in the stage of building the parser in yacc. The thing currently confusing me is I\'ve read that you need to as[详细]
2023-02-08 22:31 分类:问答bison calculator problem
开发者_开发问答stmt : expr{printf(\"%d\\n\",$1);} ; expr :expr \'+\' expr{$$ = $1 + $3;} |expr \'-\' expr{$$ = $1 - $3;}[详细]
2023-02-08 20:31 分类:问答How do I handle newlines in a Bison Grammar, without allowing all characters?
I\'ve gone right back to basics to try and understand how the parser can match an input line such as \"asdf\", or any other jumble of characters, where there is no rule defined for this.[详细]
2023-02-08 03:37 分类:问答bison precedence doesn't work
This is my flex code %{ #include \"fl.tab.h\" %} %% [0-9]+{ yylval = atoi(yytext); return INTEGER; } \\nreturn 0;[详细]
2023-02-08 02:26 分类:问答Need a simple Bison grammar for HTML
I\'ve looked at the Bison help and have written this, but I\'m not sure it\'s completely correct. Also i need an yylex() that handle Lexical Analyzer (It should be Flex tool). I know some basic things[详细]
2023-02-06 18:23 分类:问答Tools for Automated Source Code Editing
I\'m working on a research project to automatically modify code to include advanced mathematical concepts (like adding random effects into a loop or encapsulating an existing function with a new funct[详细]
2023-02-03 06:37 分类:问答