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