yacc
single, double quotes, or tokens?
Tutorials on writing yacc code online use single quotes for semicolons, and other characters: \';\'\'+\'\'-\' (et开发者_如何学Cc)[详细]
2023-02-27 05:42 分类:问答lextestpass.l:384: error: expected expression before ‘int’
So I have this definition in a header file (actually the y.tab.h file): typedef enum yytokentype { TOKEN_UNKNOWN = 1000,[详细]
2023-02-27 05:10 分类:问答Extra right brace in yacc output
My lex file has: word [^{}\"=,\\t\\n@\\\\ ]+ \\{{ return(LBRACE); } \\}{ return(RBRACE); } {word}{ yylval = yytext; printf(\"WORD=%s\",yytext); return(WORD);[详细]
2023-02-26 20:33 分类:问答compilation programming using yacc
So I have a yacc file which gives the required yy.tab.c when I compile it, but when I use cc or gcc to compile the output file with the library -ly, it says ly not found.[详细]
2023-02-26 18:22 分类:问答semantic phase of c compiler
if write 1=a in the sample c program, it doesnt detect it as an error. How do i solve this problem? Also how do i do global and local scope of variables. Thanks if anyone can solve it[详细]
2023-02-25 09:39 分类:问答How does/would the following snippet work for generation of an AST?
We\'re writing a compiler for Al Aho\'s compilers class, and we\'re considering the following code for the generation of our AST. Here is some background. We want to implement scoping rules as a stack[详细]
2023-02-24 11:11 分类:问答How to get the AST from YACC?
I know how to make YACC generate an AST, but how do you actaully get it? I mean, how do you actaully get t开发者_运维技巧he value of the root node from YACC?Yacc only gives you back one node at a time[详细]
2023-02-24 09:21 分类:问答Byacc Conflicts
I\'m creating a byacc program to parse some input, and I\'m having trouble resolving shift/reduce conflicts, in this case, how could I tell byac to always shift?[详细]
2023-02-23 22:56 分类:问答Problem with parsing in yacc
I have an application using sockets.. a client and server program like mySql.. I am sending queries from the client to the server where the parser resides....[详细]
2023-02-23 15:20 分类:问答How to compile LEX/YACC files on Windows?
I\'m having Lex and YACC files to parse my files (.l file and .y file). How to compile those files and how 开发者_运维问答to make equivalent .c file for them in windows platform?As for today (2011-04[详细]
2023-02-20 00:15 分类:问答