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:
parent
c625718513
commit
619f20775d
3 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue