comparison trunk/src/dil/Messages.d @ 524:39b497c76e2b

Moved struct MSG from dil.Parser to dil.Messages.
author Aziz K?ksal <aziz.koeksal@gmail.com>
date Sun, 16 Dec 2007 19:34:36 +0100
parents 3ead178e0662
children 135e9e6933a7
comparison
equal deleted inserted replaced
523:d22a33cab0b5 524:39b497c76e2b
98 foreach (ref tiinfo; tiinfos) 98 foreach (ref tiinfo; tiinfos)
99 tiinfo = typeid(char[]); 99 tiinfo = typeid(char[]);
100 return Format(tiinfos, args.ptr, format_str); 100 return Format(tiinfos, args.ptr, format_str);
101 } 101 }
102 +/ 102 +/
103
104 /// Collection of error messages with no MID yet.
105 struct MSG
106 {
107 static:
108 // Parser messages:
109 auto ExpectedIdAfterTypeDot = "expected identifier after '(Type).', not '{}'";
110 auto ExpectedModuleIdentifier = "expected module identifier, not '{}'";
111 auto IllegalDeclaration = "illegal Declaration found: ";
112 auto ExpectedFunctionName = "expected function name, not '{}'";
113 auto ExpectedVariableName = "expected variable name, not '{}'";
114 auto ExpectedFunctionBody = "expected function body, not '{}'";
115 auto RedundantLinkageType = "redundant linkage type: ";
116 auto ExpectedPragmaIdentifier = "expected pragma identifier, not '{}'";
117 auto ExpectedAliasModuleName = "expected alias module name, not '{}'";
118 auto ExpectedAliasImportName = "expected alias name, not '{}'";
119 auto ExpectedImportName = "expected an identifier, not '{}'";
120 auto ExpectedEnumMember = "expected enum member, not '{}'";
121 auto ExpectedEnumBody = "expected enum body, not '{}'";
122 auto ExpectedClassName = "expected class name, not '{}'";
123 auto ExpectedClassBody = "expected class body, not '{}'";
124 auto ExpectedInterfaceName = "expected interface name, not '{}'";
125 auto ExpectedInterfaceBody = "expected interface body, not '{}'";
126 auto ExpectedTemplateName = "expected template name, not '{}'";
127 auto ExpectedAnIdentifier = "expected an identifier, not '{}'";
128 auto IllegalStatement = "illegal Statement found: ";
129 auto ExpectedNonEmptyStatement = "didn't expect ';', use {{ }} instead";
130 auto ExpectedScopeIdentifier = "expected 'exit', 'success' or 'failure', not '{}'";
131 auto InvalidScopeIdentifier = "'exit', 'success', 'failure' are valid scope identifiers, but not '{}';";
132 auto ExpectedIntegerAfterAlign = "expected an integer after align, not '{}'";
133 auto IllegalAsmInstructino = "illegal AsmInstruction found: ";
134 auto ExpectedDeclaratorIdentifier = "expected declarator identifier, not '{}'";
135 auto ExpectedTemplateParameters = "expected one or more template parameters not ')'";
136 auto ExpectedTypeOrExpression = "expected a type or and expression not ')'";
137 auto ExpectedAliasTemplateParam = "expected name for alias template parameter, not '{}'";
138 auto ExpectedNameForThisTempParam = "expected name for 'this' template parameter, not '{}'";
139 }