yacc
What is wrong with this yacc file?
I\'m getting this error tema4.y:13.19-26: syntax error, unexpected typetype on the following code, please help me![详细]
2023-02-02 08:34 分类:问答yacc: can't get yytext value from lex to yacc
Lex file: {Id}{yylval.strVal=yytext; cout<<yytext<<endl; return Id;} Yacc file: %union{ int iVal;[详细]
2023-02-02 05:32 分类:问答How to fix a warning message associated with strlen() used in Yacc?
Please i need your help. Basically, I am facing this warning message upon compiling with gcc, and am not able to deduce the error:[详细]
2023-02-01 08:44 分类:问答How can I send the yyleng of a matched string from Lex to Yacc?
Please i am trying to pass the yyleng of a matched string from my (.l) file to the (.y) file. Here is a sample of the issue:[详细]
2023-02-01 03:15 分类:问答How to access class member from bison action
I am calling yyparse from a member function. How to access the member variables/function from the bison action.[详细]
2023-01-31 22:21 分类:问答How to convert the (yytext) from small letters to capital letters (in Lex & yacc)?
Please, how can i convert a matched string in lex (yytext) from small letters to capital letters? If 开发者_JS百科you can provide me an example i would be grateful.[详细]
2023-01-31 21:12 分类:问答Is there any active Lex and Yacc IRC? [closed]
开发者_如何学C As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely sol[详细]
2023-01-31 18:55 分类:问答Bison derivation problems with code generation
Hello I\'m using bison for a compiler for study purposes, i got the next code: if : if2 if1; if2: SE expressao {$1 = (struct lbs *) newlblrec(); $1->for_jmp_false = reserve_loc(); $1->label[详细]
2023-01-31 06:38 分类:问答BNF: input going to wrong nonterminal
I\'m developing a BNF for chess algebraic notation and ran into an interesting case, input going to the wrong non-terminal.[详细]
2023-01-28 22:42 分类:问答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 分类:问答