#869 Negative float reading fixed

This commit is contained in:
honfika@gmail.com
2015-05-01 12:07:38 +02:00
parent 3b11085365
commit 45251ada53
9 changed files with 235 additions and 209 deletions

View File

@@ -93,7 +93,7 @@ NegativeNumberLiteral = - {PositiveNumberLiteral}
NumberLiteral = {PositiveNumberLiteral}|{NegativeNumberLiteral}
/* floating point literals */
FloatLiteral = "NaN" | {Infinity} | (({FLit1}|{FLit2}|{FLit3}) {Exponent}?)
FloatLiteral = -?"NaN" | -?{Infinity} | -?(({FLit1}|{FLit2}|{FLit3}) {Exponent}?)
FLit1 = [0-9]+ \. [0-9]*
FLit2 = \. [0-9]+