diff options
-rw-r--r-- | expr.y | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -19,8 +19,6 @@ static char **expr_args; #define YYSTYPE expr_yystype -//#include "y.tab.h" - static int yylex(void); static int yyerror(const char *s); static void expr_only_integers(YYSTYPE *y1, YYSTYPE *y2); @@ -43,9 +41,11 @@ static int expr_compare(YYSTYPE *y1, YYSTYPE *y2); %% expr : STRING { + printf("%s\n", $1.u.s); } | INTEGER { + printf("%d\n", $1.u.i); } | '(' expr ')' { |