diff options
Diffstat (limited to 'lex.l')
-rw-r--r-- | lex.l | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | %{ | 1 | %{ |
2 | #include "syntax.tab.h" // Bison 生成的头文件 | 2 | #include "syntax.tab.h" |
3 | 3 | ||
4 | void yyerror(const char *s); | 4 | void yyerror(const char *s); |
5 | %} | 5 | %} |
@@ -20,7 +20,6 @@ void yyerror(const char *s); | |||
20 | 20 | ||
21 | %% | 21 | %% |
22 | 22 | ||
23 | void yyerror(const char *s) | 23 | void yyerror(const char *s) { |
24 | { | ||
25 | fprintf(stderr, "error: %s\n", s); | 24 | fprintf(stderr, "error: %s\n", s); |
26 | } | 25 | } |