Pitit probleme avec bison ... - Programmation
Marsh Posté le 04-03-2002 à 20:01:58
Gugus2000 a écrit a écrit : "Votre programme doit accepter une option -d qui déclenche la sortie de débuggage de Bison." je comprend pas comment faire ca mon parseur voit bien si y a un '-d' mais je sais pas comment le traiter pour faire en sorte que bison le traite ;/ -d --defines Write an extra output file containing macro defini- tions for the token type names defined in the gram- mar and the semantic value type YYSTYPE, as well as a few extern variable declarations. If the parser output file is named name.c then this file is named name.h. This output file is essential if you wish to put the definition of yylex in a separate source file. HELP |
ca c pour faire le point h... "bison -d"
pour le cprep -d, j'ai rajouté yy_flex_debug et je le met a 1...
mais je sais pas comment tester pour apres..
Marsh Posté le 04-03-2002 à 18:47:26
"Votre programme doit accepter une option -d qui déclenche la sortie de débuggage de Bison."
je comprend pas comment faire ca
mon parseur voit bien si y a un '-d' mais je sais pas comment le traiter pour faire en sorte que bison le traite ;/
-d
--defines
Write an extra output file containing macro defini-
tions for the token type names defined in the gram-
mar and the semantic value type YYSTYPE, as well as
a few extern variable declarations.
If the parser output file is named name.c then this
file is named name.h.
This output file is essential if you wish to put
the definition of yylex in a separate source file.
HELP