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

* Don't use ATerms to represent integers in the lexer.

This commit is contained in:
Eelco Dolstra 2010-04-12 10:38:18 +00:00
parent db90b88e65
commit ed711f73bc
2 changed files with 5 additions and 3 deletions

View file

@ -107,7 +107,7 @@ inherit { return INHERIT; }
{ID} { yylval->t = toATerm(yytext); return ID; /* !!! alloc */ }
{INT} { int n = atoi(yytext); /* !!! overflow */
yylval->t = ATmake("<int>", n);
yylval->n = n;
return INT;
}