1 /// Author: Aziz Köksal 2 /// License: GPL3 3 /// $(Maturity average) 4 module dil.i18n.Messages; 5 6 // How to add a new message: 7 // 1. Insert short but descriptive identifier in MID. 8 // 2. Open all data/lang_*.d files. 9 // 3. Insert the new message at the same position. 10 // 4. Insert null when the translation is not available yet. 11 12 /// Enumeration of indices into the table of compiler messages. 13 enum MID 14 { 15 // Lexer messages: 16 IllegalCharacter, 17 // InvalidUnicodeCharacter, 18 InvalidUTF8Sequence, 19 // '' 20 UnterminatedCharacterLiteral, 21 EmptyCharacterLiteral, 22 // #line 23 ExpectedIdentifierSTLine, 24 ExpectedIntegerAfterSTLine, 25 // ExpectedFilespec, 26 UnterminatedFilespec, 27 UnterminatedSpecialToken, 28 // "" 29 UnterminatedString, 30 // x"" 31 NonHexCharInHexString, 32 OddNumberOfDigitsInHexString, 33 UnterminatedHexString, 34 // /* */ /+ +/ 35 UnterminatedBlockComment, 36 UnterminatedNestedComment, 37 // `` r"" 38 UnterminatedRawString, 39 UnterminatedBackQuoteString, 40 // \x \u \U 41 UndefinedEscapeSequence, 42 InvalidUnicodeEscapeSequence, 43 InsufficientHexDigits, 44 // \&[a-zA-Z][a-zA-Z0-9]+; 45 UndefinedHTMLEntity, 46 UnterminatedHTMLEntity, 47 InvalidBeginHTMLEntity, 48 // integer overflows 49 OverflowDecimalSign, 50 OverflowDecimalNumber, 51 OverflowHexNumber, 52 OverflowBinaryNumber, 53 OverflowOctalNumber, 54 OverflowFloatNumber, 55 OctalNumberHasDecimals, 56 OctalNumbersDeprecated, 57 NoDigitsInHexNumber, 58 NoDigitsInBinNumber, 59 HexFloatExponentRequired, 60 HexFloatExpMustStartWithDigit, 61 FloatExpMustStartWithDigit, 62 CantReadFile, 63 InexistantFile, 64 InvalidOctalEscapeSequence, 65 InvalidModuleName, 66 DelimiterIsWhitespace, 67 DelimiterIsMissing, 68 NoNewlineAfterIdDelimiter, 69 UnterminatedDelimitedString, 70 ExpectedDblQuoteAfterDelim, 71 UnterminatedTokenString, 72 73 // Parser messages: 74 ExpectedButFound, 75 RedundantStorageClass, 76 TemplateTupleParameter, 77 InContract, 78 OutContract, 79 MissingLinkageType, 80 UnrecognizedLinkageType, 81 ExpectedBaseClasses, 82 BaseClassInForwardDeclaration, 83 InvalidUTF8SequenceInString, 84 ModuleDeclarationNotFirst, 85 StringPostfixMismatch, 86 UnexpectedIdentInType, 87 ExpectedIdAfterTypeDot, 88 ExpectedModuleIdentifier, 89 IllegalDeclaration, 90 ExpectedModuleType, 91 ExpectedFunctionName, 92 ExpectedVariableName, 93 ExpectedAliasName, 94 ExpectedFunctionBody, 95 RedundantLinkageType, 96 RedundantProtection, 97 RedundantConstraint, 98 ExpectedPragmaIdentifier, 99 ExpectedAliasModuleName, 100 ExpectedAliasImportName, 101 ExpectedImportName, 102 ExpectedEnumMember, 103 ExpectedEnumBody, 104 ExpectedClassName, 105 ExpectedClassBody, 106 ExpectedInterfaceName, 107 ExpectedInterfaceBody, 108 ExpectedStructBody, 109 ExpectedUnionBody, 110 ExpectedUnittestBody, 111 ExpectedTemplateName, 112 ExpectedAnIdentifier, 113 IllegalStatement, 114 ExpectedNonEmptyDeclaration, 115 ExpectedNonEmptyStatement, 116 ExpectedScopeIdentifier, 117 InvalidScopeIdentifier, 118 ExpectedLinkageIdentifier, 119 ExpectedAttributeId, 120 UnrecognizedAttribute, 121 ExpectedIntegerAfterAlign, 122 IllegalAsmStatement, 123 IllegalAsmBinaryOp, 124 ExpectedDeclaratorIdentifier, 125 ExpectedTemplateParameters, 126 ExpectedTypeOrExpression, 127 ExpectedAliasTemplateParam, 128 ExpectedNameForThisTempParam, 129 ExpectedIdentOrInt, 130 MissingCatchOrFinally, 131 ExpectedClosing, 132 AliasHasInitializer, 133 AliasExpectsVariable, 134 TypedefExpectsVariable, 135 CaseRangeStartExpression, 136 ExpectedParamDefValue, 137 IllegalVariadicParam, 138 ParamsAfterVariadic, 139 CannotChainComparisonOps, 140 141 // Semantic analysis: 142 CouldntLoadModule, 143 ModulePathIsFolder, 144 ConflictingModuleFiles, 145 ConflictingModuleAndPackage, 146 ConflictingPackageAndModule, 147 ModuleNotInPackage, 148 UndefinedIdentifier, 149 DeclConflictsWithDecl, 150 VariableConflictsWithDecl, 151 InterfaceCantHaveVariables, 152 MixinArgumentMustBeString, 153 DebugSpecModuleLevel, 154 VersionSpecModuleLevel, 155 InvalidUTF16Sequence, 156 MissingLowSurrogate, 157 MissingHighSurrogate, 158 InvalidTemplateArgument, 159 160 // Converter: 161 InvalidUTF16Character, 162 InvalidUTF32Character, 163 UTF16FileMustBeDivisibleBy2, 164 UTF32FileMustBeDivisibleBy4, 165 166 // DDoc messages: 167 UndefinedDDocMacro, 168 UnterminatedDDocMacro, 169 UndocumentedSymbol, 170 EmptyDDocComment, 171 MissingParamsSection, 172 UndocumentedParam, 173 174 // Help messages: 175 UnknownCommand, 176 UsageError, 177 MissingOptionArgument, 178 HelpMain, 179 HelpCompile, 180 HelpPytree, 181 HelpDdoc, 182 HelpHighlight, 183 HelpImportGraph, 184 HelpTokenize, 185 HelpDlexed, 186 HelpSerialize, 187 HelpStatistics, 188 HelpTranslate, 189 HelpSettings, 190 HelpHelp, 191 }