repair string literals

This commit is contained in:
Christian Barthel 2019-07-04 21:55:22 +02:00
parent 02d3d783c9
commit e0bbc7f7cb
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ t { yylval = 1; return BOOL;}
nil { yylval = 0; return BOOL; }
[0-9]+ { yylval = atoi(yytext); return NUM; }
[ \t\n] { /* ignore white space */ }
\".*\" { return STR; }
\"[^\"]*\" { return STR; }
[a-zA-Z][a-zA-Z0-9]* { return SYM; }
. { err(1, "invalid symbol: %s\n", yytext); }
%%