1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-29 06:21:14 +02:00

* Parser numbers again.

* Include missing files in distributions.
This commit is contained in:
Eelco Dolstra 2004-01-30 17:06:03 +00:00
parent c625718513
commit 619f20775d
3 changed files with 6 additions and 2 deletions

View file

@ -58,7 +58,10 @@ rec { return REC; }
\-\> { return IMPL; }
{ID} { yylval->t = ATmake("<str>", yytext); return ID; /* !!! alloc */ }
{INT} { return INT; }
{INT} { int n = atoi(yytext); /* !!! overflow */
yylval->t = ATmake("<int>", n);
return INT;
}
{STR} { int len = strlen(yytext);
yytext[len - 1] = 0;
yylval->t = ATmake("<str>", yytext + 1);