Make '0' be a valid number
This commit is contained in:
parent
e9bca9a46e
commit
e92cba3e15
@ -1,4 +1,4 @@
|
|||||||
/* $NetBSD: scan.l,v 1.12 2003/11/30 09:22:25 dsl Exp $ */
|
/* $NetBSD: scan.l,v 1.13 2004/07/18 10:57:32 dsl Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright 1997 Piermont Information Systems Inc.
|
* Copyright 1997 Piermont Information Systems Inc.
|
||||||
@ -124,7 +124,7 @@ clear { return CLEAR; }
|
|||||||
return(NAME);
|
return(NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
[-1-9][0-9]* {
|
0|[-1-9][0-9]* {
|
||||||
yylval.s_value = strdup(yytext);
|
yylval.s_value = strdup(yytext);
|
||||||
return(INT_CONST);
|
return(INT_CONST);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user