Re: Implicit Multiplication
On 9 Aug 2005, at 01:33, Aaron Hurst wrote: This seems to implement exactly the behavior I was describing. The help is much appreciated. You are welcome. But you need to check the token precedences for IDENTIFIER '(' ')'; I just put them in to avoid conflicts. [Also keep the cc to Help-Bison, so others know.] Hans Aberg ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
classical error but unresolved "syntax error at end of input"
the result of the grammar file (*.y) compilation give me this error: "syntax error at end of input" I Know this is not really important but i don't find it and I can't test my grammar file I give you the code (begin and end of it) A warning appear to indicate that yyerror has been declared on implicit way "Static" and farrer "extern" I really don't know what is the meaning and if it's important or not... thanks for your help %{ //#include "global.h" #include #include #include #include "SuiteTest.c" %} %token DEBUT FIN %left PLUS MOINS %left FOIS DIVISE %right EXP %start P %% P : DEBUT S FIN {testRecup();} [...some grammar rule...] [...] |NUL SEMI_COLUMN Qb {printf(" ");} |/*vide*/ {printf(" ");} %% int yyerror(char *s) { printf("%s\n",s); return 0; } int main(void) { yyparse(); return 0; } ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison
classical error but unresolved "syntax error at end of input"
the result of the grammar file (*.y) compilation give me this error: "syntax error at end of input" I Know this is not really important but i don't find it and I can't test my grammar file I give you the code (begin and end of it) A warning appear to indicate that yyerror has been declared on implicit way "Static" and farrer "extern" I really don't know what is the meaning and if it's important or not... thanks for your help %{ //#include "global.h" #include #include #include #include "SuiteTest.c" %} %token DEBUT FIN %left PLUS MOINS %left FOIS DIVISE %right EXP %start P %% P : DEBUT S FIN {testRecup();} [...some grammar rule...] [...] |NUL SEMI_COLUMN Qb {printf(" ");} |/*vide*/ {printf(" ");} %% int yyerror(char *s) { printf("%s\n",s); return 0; } int main(void) { yyparse(); return 0; } ___ Help-bison@gnu.org http://lists.gnu.org/mailman/listinfo/help-bison