Skip to content

Commit

Permalink
Remove an unused rule in the lexer
Browse files Browse the repository at this point in the history
  • Loading branch information
jvshahid committed Aug 13, 2014
1 parent bc8b068 commit 335dec7
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions parser/query.lex
Original file line number Diff line number Diff line change
Expand Up @@ -122,20 +122,6 @@ true|false { yylval->string = strdup(yy

[a-zA-Z0-9_][a-zA-Z0-9._-]* { yylval->string = strdup(yytext); return TABLE_NAME; }

\" { BEGIN(IN_TABLE_NAME); yylval->string=calloc(1, sizeof(char)); }
<IN_TABLE_NAME>\\\" {
yylval->string = realloc(yylval->string, strlen(yylval->string) + 1);
strcat(yylval->string, "\"");
}
<IN_TABLE_NAME>\" {
BEGIN(INITIAL);
return TABLE_NAME;
}
<IN_TABLE_NAME>[^\\"]* {
yylval->string=realloc(yylval->string, strlen(yylval->string) + strlen(yytext) + 1);
strcat(yylval->string, yytext);
}

[:\[a-zA-Z0-9_][:\[\]a-zA-Z0-9._-]* { yylval->string = strdup(yytext); return INTO_NAME; }

\'[^\']*\' {
Expand Down

0 comments on commit 335dec7

Please sign in to comment.