Mercurial > projects > dang
diff basic/Messages.d @ 111:c658172ca8a0
Parsing basic integers and floats.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Sun, 25 May 2008 15:42:44 +0200 |
parents | d1f68bfb58ae |
children | 3a0cd42de9cc |
line wrap: on
line diff
--- a/basic/Messages.d Sun May 25 14:56:05 2008 +0200 +++ b/basic/Messages.d Sun May 25 15:42:44 2008 +0200 @@ -34,8 +34,16 @@ InvalidStrEscape, InvalidUtf8Hex, InvalidHexStrChar, + InvalidCharEntity, + NoCharEntityEnd, StringShortEscape, StringHexInvalid, + InvalidStartInteger, + IntegerToLarge, + FloatingToLarge, + FloatingInvalidEnd, + FloatingBadLocation, + FloatingDotInE, } enum MessageType @@ -85,9 +93,17 @@ InvalidStrPrefix : E(Err, "Invalid string literal prefix"), InvalidStrEscape : E(Err, "Invalid escape sequence"), InvalidUtf8Hex : E(Err, "Invalid Utf8 hex char"), + NoCharEntityEnd : E(Err, "Character entity have no end, insert ';'"), + InvalidCharEntity : E(Err, "Invalid character entity"), InvalidHexStrChar : E(Err, "Invalid character in hex string"), StringShortEscape : E(Err, "String literal is to short for escape sequence"), - StringHexInvalid : E(Err, "Hex escape sequence have invalid digit at position %0 of %1") + StringHexInvalid : E(Err, "Hex escape sequence have invalid digit at position %0 of %1"), + InvalidStartInteger : E(Err, "Invalid begining of number"), + IntegerToLarge : E(Err, "Integer is to large. Max size is 18446744073709551615"), + FloatingToLarge : E(Err, "Floating literal is to large"), + FloatingInvalidEnd : E(Err, "Floating literal have wrong ending"), + FloatingBadLocation : E(Err, "Bad location for '%0' in floting literal"), + FloatingDotInE : E(Err, "There cannot be a dot in the exponent of a floating literal") ]; }