Mercurial > projects > dil
diff trunk/src/Messages.d @ 63:c29229fbf2f7
- Recognizing floats that start with a dot.
- Fixed while loop of integer scanner.
- Consuming octal as well as decimal digits in octal number scanner.
- Implemented scanReal() function.
- Added finalizeFloat() function to convert the recognized float string and complete the token.
author | aziz |
---|---|
date | Fri, 29 Jun 2007 18:15:01 +0000 |
parents | 96af5653acef |
children | aa1ea2548dd9 |
line wrap: on
line diff
--- a/trunk/src/Messages.d Fri Jun 29 15:07:05 2007 +0000 +++ b/trunk/src/Messages.d Fri Jun 29 18:15:01 2007 +0000 @@ -42,11 +42,13 @@ OverflowHexNumber, OverflowBinaryNumber, OverflowOctalNumber, - OverflowHexFloatNumber, + OverflowFloatNumber, + OctalNumberHasDecimals, NoDigitsInHexNumber, NoDigitsInBinNumber, HexFloatExponentRequired, HexFloatMissingExpDigits, + FloatExponentDigitExpected, } string[] messages = [ @@ -85,9 +87,11 @@ "overflow in hexadecimal number.", "overflow in binary number.", "overflow in octal number.", - "overflow in hexadecimal float number.", + "overflow in float number.", + "decimal digits are not allowed in octal numbers.", "invalid hex number; at least one hex digit expected.", "invalid binary number; at least one binary digit expected.", "the exponent of a hexadecimal float number is required.", "missing decimal digits in hexadecimal float exponent.", + "exponents have to start with a digit.", ];