comparison trunk/src/dil/Parser.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 f203c5248d0b
children d0ac6faeaf66
comparison
equal deleted inserted replaced
523:d22a33cab0b5 524:39b497c76e2b
4442 auto error = new ParserError(location, msg); 4442 auto error = new ParserError(location, msg);
4443 errors ~= error; 4443 errors ~= error;
4444 if (infoMan !is null) 4444 if (infoMan !is null)
4445 infoMan ~= error; 4445 infoMan ~= error;
4446 } 4446 }
4447
4448 /// Collection of error messages with no MID yet.
4449 private struct MSG
4450 {
4451 static:
4452 auto ExpectedIdAfterTypeDot = "expected identifier after '(Type).', not '{}'";
4453 auto ExpectedModuleIdentifier = "expected module identifier, not '{}'";
4454 auto IllegalDeclaration = "illegal Declaration found: ";
4455 auto ExpectedFunctionName = "expected function name, not '{}'";
4456 auto ExpectedVariableName = "expected variable name, not '{}'";
4457 auto ExpectedFunctionBody = "expected function body, not '{}'";
4458 auto RedundantLinkageType = "redundant linkage type: ";
4459 auto ExpectedPragmaIdentifier = "expected pragma identifier, not '{}'";
4460 auto ExpectedAliasModuleName = "expected alias module name, not '{}'";
4461 auto ExpectedAliasImportName = "expected alias name, not '{}'";
4462 auto ExpectedImportName = "expected an identifier, not '{}'";
4463 auto ExpectedEnumMember = "expected enum member, not '{}'";
4464 auto ExpectedEnumBody = "expected enum body, not '{}'";
4465 auto ExpectedClassName = "expected class name, not '{}'";
4466 auto ExpectedClassBody = "expected class body, not '{}'";
4467 auto ExpectedInterfaceName = "expected interface name, not '{}'";
4468 auto ExpectedInterfaceBody = "expected interface body, not '{}'";
4469 auto ExpectedTemplateName = "expected template name, not '{}'";
4470 auto ExpectedAnIdentifier = "expected an identifier, not '{}'";
4471 auto IllegalStatement = "illegal Statement found: ";
4472 auto ExpectedNonEmptyStatement = "didn't expect ';', use {{ }} instead";
4473 auto ExpectedScopeIdentifier = "expected 'exit', 'success' or 'failure', not '{}'";
4474 auto InvalidScopeIdentifier = "'exit', 'success', 'failure' are valid scope identifiers, but not '{}';";
4475 auto ExpectedIntegerAfterAlign = "expected an integer after align, not '{}'";
4476 auto IllegalAsmInstructino = "illegal AsmInstruction found: ";
4477 auto ExpectedDeclaratorIdentifier = "expected declarator identifier, not '{}'";
4478 auto ExpectedTemplateParameters = "expected one or more template parameters not ')'";
4479 auto ExpectedTypeOrExpression = "expected a type or and expression not ')'";
4480 auto ExpectedAliasTemplateParam = "expected name for alias template parameter, not '{}'";
4481 auto ExpectedNameForThisTempParam = "expected name for 'this' template parameter, not '{}'";
4482 }
4483 } 4447 }