comparison basic/Messages.d @ 136:2be29b296081

Lots of changes: - Parsing classes and interfaces - Fixed some seg faults in sema - Supporting "private" to some extend - And a lot of other small fixes
author johnsen@johnsen-laptop
date Fri, 11 Jul 2008 21:47:57 +0200
parents 3a0cd42de9cc
children 927ae00bd9d2
comparison
equal deleted inserted replaced
135:9869194de9b7 136:2be29b296081
30 CannotFindModule, 30 CannotFindModule,
31 InvalidImplicitCast, 31 InvalidImplicitCast,
32 UndefinedIdentifier, 32 UndefinedIdentifier,
33 UndefinedType, 33 UndefinedType,
34 MissingMember, 34 MissingMember,
35 CannotRedeclare,
35 36
36 // Strings 37 // Strings
37 InvalidStrPrefix, 38 InvalidStrPrefix,
38 InvalidStrEscape, 39 InvalidStrEscape,
39 InvalidUtf8Hex, 40 InvalidUtf8Hex,
46 IntegerToLarge, 47 IntegerToLarge,
47 FloatingToLarge, 48 FloatingToLarge,
48 FloatingInvalidEnd, 49 FloatingInvalidEnd,
49 FloatingBadLocation, 50 FloatingBadLocation,
50 FloatingDotInE, 51 FloatingDotInE,
52
53 // Protection
54 CannotAccessPrivate,
51 } 55 }
52 56
53 enum MessageType 57 enum MessageType
54 { 58 {
55 Warning, 59 Warning,
94 CannotFindModule : E(Err, "Cannot find module '%0'"), 98 CannotFindModule : E(Err, "Cannot find module '%0'"),
95 InvalidImplicitCast : E(Err, "Cannot make implicit cast between %0 and %1"), 99 InvalidImplicitCast : E(Err, "Cannot make implicit cast between %0 and %1"),
96 UndefinedIdentifier : E(Err, "Undefined identifier '%0'"), 100 UndefinedIdentifier : E(Err, "Undefined identifier '%0'"),
97 UndefinedType : E(Err, "Undefined type '%0'"), 101 UndefinedType : E(Err, "Undefined type '%0'"),
98 MissingMember : E(Err, "%0 %1 has no member %2"), 102 MissingMember : E(Err, "%0 %1 has no member %2"),
103 CannotRedeclare : E(Err, "Cannot redeclare '%0'"),
99 104
100 // literals 105 // literals
101 InvalidStrPrefix : E(Err, "Invalid string literal prefix"), 106 InvalidStrPrefix : E(Err, "Invalid string literal prefix"),
102 InvalidStrEscape : E(Err, "Invalid escape sequence"), 107 InvalidStrEscape : E(Err, "Invalid escape sequence"),
103 InvalidUtf8Hex : E(Err, "Invalid Utf8 hex char"), 108 InvalidUtf8Hex : E(Err, "Invalid Utf8 hex char"),
109 InvalidStartInteger : E(Err, "Invalid begining of number"), 114 InvalidStartInteger : E(Err, "Invalid begining of number"),
110 IntegerToLarge : E(Err, "Integer is to large. Max size is 18446744073709551615"), 115 IntegerToLarge : E(Err, "Integer is to large. Max size is 18446744073709551615"),
111 FloatingToLarge : E(Err, "Floating literal is to large"), 116 FloatingToLarge : E(Err, "Floating literal is to large"),
112 FloatingInvalidEnd : E(Err, "Floating literal have wrong ending"), 117 FloatingInvalidEnd : E(Err, "Floating literal have wrong ending"),
113 FloatingBadLocation : E(Err, "Bad location for '%0' in floting literal"), 118 FloatingBadLocation : E(Err, "Bad location for '%0' in floting literal"),
114 FloatingDotInE : E(Err, "There cannot be a dot in the exponent of a floating literal") 119 FloatingDotInE : E(Err, "There cannot be a dot in the exponent of a floating literal"),
120 CannotAccessPrivate : E(Err, "Cannot access private member.")
115 ]; 121 ];
116 } 122 }
117 123