Skip to content

Commit

Permalink
fix typo in lex_sql.l
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJY0516 committed Oct 24, 2024
1 parent 9172074 commit 9e31684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/observer/sql/parser/lex_sql.l
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ extern double atof();
%option case-insensitive
%option bison-locations

WHITE_SAPCE [\ \t\b\f]
WHITE_SPACE [\ \t\b\f]
DIGIT [0-9]+

ID [A-Za-z_]+[A-Za-z0-9_]*
Expand All @@ -74,7 +74,7 @@ QUOTE [\'\"]
/* yylval 就可以认为是 yacc 中 %union 定义的结构体(union 结构) */
%%

{WHITE_SAPCE} // ignore whitespace
{WHITE_SPACE} // ignore whitespace
\n ;

[\-]?{DIGIT}+ yylval->number=atoi(yytext); RETURN_TOKEN(NUMBER);
Expand Down

0 comments on commit 9e31684

Please sign in to comment.