Fix parsing of negative numbers. Note that parsing of floating point numbers is broken in exponential form (1.0e6 or...

Original commit message from CVS:
Fix parsing of negative numbers.  Note that parsing of floating point
numbers is broken in exponential form (1.0e6 or 1.0E6).
This commit is contained in:
David Schleef 2002-10-31 20:06:44 +00:00
parent ac94f1f879
commit 5c1230f6d1

View file

@ -17,8 +17,8 @@
#define YY_NO_UNPUT
%}
_integer [[:digit:]]+
_double [[:digit:]]+"."*[[:digit:]]*
_integer [-+]?[[:digit:]]+
_double [-+]?[[:digit:]]+"."*[[:digit:]]*
_number {_integer}|{_double}
_boolean "true"|"false"|"TRUE"|"FALSE"
_identifier [[:alpha:]][[:alnum:]\-_%:]*