compiler/msgs.nim: minor code cleanup
This commit is contained in:
parent
1aa359febb
commit
eef12654bd
1 changed files with 105 additions and 105 deletions
|
|
@ -146,7 +146,7 @@ const
|
||||||
errUnknown: "unknown error",
|
errUnknown: "unknown error",
|
||||||
errInternal: "internal error: $1",
|
errInternal: "internal error: $1",
|
||||||
errIllFormedAstX: "illformed AST: $1",
|
errIllFormedAstX: "illformed AST: $1",
|
||||||
errCannotOpenFile: "cannot open \'$1\'",
|
errCannotOpenFile: "cannot open '$1'",
|
||||||
errGenerated: "$1",
|
errGenerated: "$1",
|
||||||
errStringLiteralExpected: "string literal expected",
|
errStringLiteralExpected: "string literal expected",
|
||||||
errIntLiteralExpected: "integer literal expected",
|
errIntLiteralExpected: "integer literal expected",
|
||||||
|
|
@ -160,39 +160,39 @@ const
|
||||||
errNumberOutOfRange: "number $1 out of valid range",
|
errNumberOutOfRange: "number $1 out of valid range",
|
||||||
errNnotAllowedInCharacter: "\\n not allowed in character literal",
|
errNnotAllowedInCharacter: "\\n not allowed in character literal",
|
||||||
errClosingBracketExpected: "closing ']' expected, but end of file reached",
|
errClosingBracketExpected: "closing ']' expected, but end of file reached",
|
||||||
errMissingFinalQuote: "missing final \' for character literal",
|
errMissingFinalQuote: "missing final ' for character literal",
|
||||||
errIdentifierExpected: "identifier expected, but found \'$1\'",
|
errIdentifierExpected: "identifier expected, but found '$1'",
|
||||||
errNewlineExpected: "newline expected, but found \'$1\'",
|
errNewlineExpected: "newline expected, but found '$1'",
|
||||||
errInvalidModuleName: "invalid module name: '$1'",
|
errInvalidModuleName: "invalid module name: '$1'",
|
||||||
errOperatorExpected: "operator expected, but found \'$1\'",
|
errOperatorExpected: "operator expected, but found '$1'",
|
||||||
errTokenExpected: "\'$1\' expected",
|
errTokenExpected: "'$1' expected",
|
||||||
errRecursiveDependencyX: "recursive dependency: \'$1\'",
|
errRecursiveDependencyX: "recursive dependency: '$1'",
|
||||||
errOnOrOffExpected: "\'on\' or \'off\' expected",
|
errOnOrOffExpected: "'on' or 'off' expected",
|
||||||
errNoneSpeedOrSizeExpected: "\'none\', \'speed\' or \'size\' expected",
|
errNoneSpeedOrSizeExpected: "'none', 'speed' or 'size' expected",
|
||||||
errInvalidPragma: "invalid pragma",
|
errInvalidPragma: "invalid pragma",
|
||||||
errUnknownPragma: "unknown pragma: \'$1\'",
|
errUnknownPragma: "unknown pragma: '$1'",
|
||||||
errInvalidDirectiveX: "invalid directive: \'$1\'",
|
errInvalidDirectiveX: "invalid directive: '$1'",
|
||||||
errAtPopWithoutPush: "\'pop\' without a \'push\' pragma",
|
errAtPopWithoutPush: "'pop' without a 'push' pragma",
|
||||||
errEmptyAsm: "empty asm statement",
|
errEmptyAsm: "empty asm statement",
|
||||||
errInvalidIndentation: "invalid indentation",
|
errInvalidIndentation: "invalid indentation",
|
||||||
errExceptionAlreadyHandled: "exception already handled",
|
errExceptionAlreadyHandled: "exception already handled",
|
||||||
errYieldNotAllowedHere: "'yield' only allowed in an iterator",
|
errYieldNotAllowedHere: "'yield' only allowed in an iterator",
|
||||||
errYieldNotAllowedInTryStmt: "'yield' cannot be used within 'try' in a non-inlined iterator",
|
errYieldNotAllowedInTryStmt: "'yield' cannot be used within 'try' in a non-inlined iterator",
|
||||||
errInvalidNumberOfYieldExpr: "invalid number of \'yield\' expressions",
|
errInvalidNumberOfYieldExpr: "invalid number of 'yield' expressions",
|
||||||
errCannotReturnExpr: "current routine cannot return an expression",
|
errCannotReturnExpr: "current routine cannot return an expression",
|
||||||
errNoReturnWithReturnTypeNotAllowed: "routines with NoReturn pragma are not allowed to have return type",
|
errNoReturnWithReturnTypeNotAllowed: "routines with NoReturn pragma are not allowed to have return type",
|
||||||
errAttemptToRedefine: "redefinition of \'$1\'",
|
errAttemptToRedefine: "redefinition of '$1'",
|
||||||
errStmtInvalidAfterReturn: "statement not allowed after \'return\', \'break\', \'raise\', \'continue\' or proc call with noreturn pragma",
|
errStmtInvalidAfterReturn: "statement not allowed after 'return', 'break', 'raise', 'continue' or proc call with noreturn pragma",
|
||||||
errStmtExpected: "statement expected",
|
errStmtExpected: "statement expected",
|
||||||
errInvalidLabel: "\'$1\' is no label",
|
errInvalidLabel: "'$1' is no label",
|
||||||
errInvalidCmdLineOption: "invalid command line option: \'$1\'",
|
errInvalidCmdLineOption: "invalid command line option: '$1'",
|
||||||
errCmdLineArgExpected: "argument for command line option expected: \'$1\'",
|
errCmdLineArgExpected: "argument for command line option expected: '$1'",
|
||||||
errCmdLineNoArgExpected: "invalid argument for command line option: \'$1\'",
|
errCmdLineNoArgExpected: "invalid argument for command line option: '$1'",
|
||||||
errInvalidVarSubstitution: "invalid variable substitution in \'$1\'",
|
errInvalidVarSubstitution: "invalid variable substitution in '$1'",
|
||||||
errUnknownVar: "unknown variable: \'$1\'",
|
errUnknownVar: "unknown variable: '$1'",
|
||||||
errUnknownCcompiler: "unknown C compiler: \'$1\'",
|
errUnknownCcompiler: "unknown C compiler: '$1'",
|
||||||
errOnOrOffExpectedButXFound: "\'on\' or \'off\' expected, but \'$1\' found",
|
errOnOrOffExpectedButXFound: "'on' or 'off' expected, but '$1' found",
|
||||||
errOnOffOrListExpectedButXFound: "\'on\', \'off\' or \'list\' expected, but \'$1\' found",
|
errOnOffOrListExpectedButXFound: "'on', 'off' or 'list' expected, but '$1' found",
|
||||||
errNoneBoehmRefcExpectedButXFound: "'none', 'boehm' or 'refc' expected, but '$1' found",
|
errNoneBoehmRefcExpectedButXFound: "'none', 'boehm' or 'refc' expected, but '$1' found",
|
||||||
errNoneSpeedOrSizeExpectedButXFound: "'none', 'speed' or 'size' expected, but '$1' found",
|
errNoneSpeedOrSizeExpectedButXFound: "'none', 'speed' or 'size' expected, but '$1' found",
|
||||||
errGuiConsoleOrLibExpectedButXFound: "'gui', 'console' or 'lib' expected, but '$1' found",
|
errGuiConsoleOrLibExpectedButXFound: "'gui', 'console' or 'lib' expected, but '$1' found",
|
||||||
|
|
@ -201,19 +201,19 @@ const
|
||||||
errGenOutExpectedButXFound: "'c', 'c++' or 'yaml' expected, but '$1' found",
|
errGenOutExpectedButXFound: "'c', 'c++' or 'yaml' expected, but '$1' found",
|
||||||
errArgsNeedRunOption: "arguments can only be given if the '--run' option is selected",
|
errArgsNeedRunOption: "arguments can only be given if the '--run' option is selected",
|
||||||
errInvalidMultipleAsgn: "multiple assignment is not allowed",
|
errInvalidMultipleAsgn: "multiple assignment is not allowed",
|
||||||
errColonOrEqualsExpected: "\':\' or \'=\' expected, but found \'$1\'",
|
errColonOrEqualsExpected: "':' or '=' expected, but found '$1'",
|
||||||
errExprExpected: "expression expected, but found \'$1\'",
|
errExprExpected: "expression expected, but found '$1'",
|
||||||
errUndeclaredField: "undeclared field: \'$1\'",
|
errUndeclaredField: "undeclared field: '$1'",
|
||||||
errUndeclaredRoutine: "attempting to call undeclared routine: \'$1\'",
|
errUndeclaredRoutine: "attempting to call undeclared routine: '$1'",
|
||||||
errUseQualifier: "ambiguous identifier: \'$1\' -- use a qualifier",
|
errUseQualifier: "ambiguous identifier: '$1' -- use a qualifier",
|
||||||
errTypeExpected: "type expected",
|
errTypeExpected: "type expected",
|
||||||
errSystemNeeds: "system module needs \'$1\'",
|
errSystemNeeds: "system module needs '$1'",
|
||||||
errExecutionOfProgramFailed: "execution of an external program failed: '$1'",
|
errExecutionOfProgramFailed: "execution of an external program failed: '$1'",
|
||||||
errNotOverloadable: "overloaded \'$1\' leads to ambiguous calls",
|
errNotOverloadable: "overloaded '$1' leads to ambiguous calls",
|
||||||
errInvalidArgForX: "invalid argument for \'$1\'",
|
errInvalidArgForX: "invalid argument for '$1'",
|
||||||
errStmtHasNoEffect: "statement has no effect",
|
errStmtHasNoEffect: "statement has no effect",
|
||||||
errXExpectsTypeOrValue: "\'$1\' expects a type or value",
|
errXExpectsTypeOrValue: "'$1' expects a type or value",
|
||||||
errXExpectsArrayType: "\'$1\' expects an array type",
|
errXExpectsArrayType: "'$1' expects an array type",
|
||||||
errIteratorCannotBeInstantiated: "'$1' cannot be instantiated because its body has not been compiled yet",
|
errIteratorCannotBeInstantiated: "'$1' cannot be instantiated because its body has not been compiled yet",
|
||||||
errExprXAmbiguous: "expression '$1' ambiguous in this context",
|
errExprXAmbiguous: "expression '$1' ambiguous in this context",
|
||||||
errConstantDivisionByZero: "division by zero",
|
errConstantDivisionByZero: "division by zero",
|
||||||
|
|
@ -221,26 +221,26 @@ const
|
||||||
errOrdinalOrFloatTypeExpected: "ordinal or float type expected",
|
errOrdinalOrFloatTypeExpected: "ordinal or float type expected",
|
||||||
errOverOrUnderflow: "over- or underflow",
|
errOverOrUnderflow: "over- or underflow",
|
||||||
errCannotEvalXBecauseIncompletelyDefined: "cannot evaluate '$1' because type is not defined completely",
|
errCannotEvalXBecauseIncompletelyDefined: "cannot evaluate '$1' because type is not defined completely",
|
||||||
errChrExpectsRange0_255: "\'chr\' expects an int in the range 0..255",
|
errChrExpectsRange0_255: "'chr' expects an int in the range 0..255",
|
||||||
errDynlibRequiresExportc: "\'dynlib\' requires \'exportc\'",
|
errDynlibRequiresExportc: "'dynlib' requires 'exportc'",
|
||||||
errUndeclaredFieldX: "undeclared field: \'$1\'",
|
errUndeclaredFieldX: "undeclared field: '$1'",
|
||||||
errNilAccess: "attempt to access a nil address",
|
errNilAccess: "attempt to access a nil address",
|
||||||
errIndexOutOfBounds: "index out of bounds",
|
errIndexOutOfBounds: "index out of bounds",
|
||||||
errIndexTypesDoNotMatch: "index types do not match",
|
errIndexTypesDoNotMatch: "index types do not match",
|
||||||
errBracketsInvalidForType: "\'[]\' operator invalid for this type",
|
errBracketsInvalidForType: "'[]' operator invalid for this type",
|
||||||
errValueOutOfSetBounds: "value out of set bounds",
|
errValueOutOfSetBounds: "value out of set bounds",
|
||||||
errFieldInitTwice: "field initialized twice: \'$1\'",
|
errFieldInitTwice: "field initialized twice: '$1'",
|
||||||
errFieldNotInit: "field \'$1\' not initialized",
|
errFieldNotInit: "field '$1' not initialized",
|
||||||
errExprXCannotBeCalled: "expression \'$1\' cannot be called",
|
errExprXCannotBeCalled: "expression '$1' cannot be called",
|
||||||
errExprHasNoType: "expression has no type",
|
errExprHasNoType: "expression has no type",
|
||||||
errExprXHasNoType: "expression \'$1\' has no type (or is ambiguous)",
|
errExprXHasNoType: "expression '$1' has no type (or is ambiguous)",
|
||||||
errCastNotInSafeMode: "\'cast\' not allowed in safe mode",
|
errCastNotInSafeMode: "'cast' not allowed in safe mode",
|
||||||
errExprCannotBeCastToX: "expression cannot be cast to $1",
|
errExprCannotBeCastToX: "expression cannot be cast to $1",
|
||||||
errCommaOrParRiExpected: "',' or ')' expected",
|
errCommaOrParRiExpected: "',' or ')' expected",
|
||||||
errCurlyLeOrParLeExpected: "\'{\' or \'(\' expected",
|
errCurlyLeOrParLeExpected: "'{' or '(' expected",
|
||||||
errSectionExpected: "section (\'type\', \'proc\', etc.) expected",
|
errSectionExpected: "section ('type', 'proc', etc.) expected",
|
||||||
errRangeExpected: "range expected",
|
errRangeExpected: "range expected",
|
||||||
errMagicOnlyInSystem: "\'magic\' only allowed in system module",
|
errMagicOnlyInSystem: "'magic' only allowed in system module",
|
||||||
errPowerOfTwoExpected: "power of two expected",
|
errPowerOfTwoExpected: "power of two expected",
|
||||||
errStringMayNotBeEmpty: "string literal may not be empty",
|
errStringMayNotBeEmpty: "string literal may not be empty",
|
||||||
errCallConvExpected: "calling convention expected",
|
errCallConvExpected: "calling convention expected",
|
||||||
|
|
@ -257,51 +257,51 @@ const
|
||||||
errWrongNumberOfVariables: "wrong number of variables",
|
errWrongNumberOfVariables: "wrong number of variables",
|
||||||
errExprCannotBeRaised: "only a 'ref object' can be raised",
|
errExprCannotBeRaised: "only a 'ref object' can be raised",
|
||||||
errBreakOnlyInLoop: "'break' only allowed in loop construct",
|
errBreakOnlyInLoop: "'break' only allowed in loop construct",
|
||||||
errTypeXhasUnknownSize: "type \'$1\' has unknown size",
|
errTypeXhasUnknownSize: "type '$1' has unknown size",
|
||||||
errConstNeedsConstExpr: "a constant can only be initialized with a constant expression",
|
errConstNeedsConstExpr: "a constant can only be initialized with a constant expression",
|
||||||
errConstNeedsValue: "a constant needs a value",
|
errConstNeedsValue: "a constant needs a value",
|
||||||
errResultCannotBeOpenArray: "the result type cannot be on open array",
|
errResultCannotBeOpenArray: "the result type cannot be on open array",
|
||||||
errSizeTooBig: "computing the type\'s size produced an overflow",
|
errSizeTooBig: "computing the type's size produced an overflow",
|
||||||
errSetTooBig: "set is too large",
|
errSetTooBig: "set is too large",
|
||||||
errBaseTypeMustBeOrdinal: "base type of a set must be an ordinal",
|
errBaseTypeMustBeOrdinal: "base type of a set must be an ordinal",
|
||||||
errInheritanceOnlyWithNonFinalObjects: "inheritance only works with non-final objects",
|
errInheritanceOnlyWithNonFinalObjects: "inheritance only works with non-final objects",
|
||||||
errInheritanceOnlyWithEnums: "inheritance only works with an enum",
|
errInheritanceOnlyWithEnums: "inheritance only works with an enum",
|
||||||
errIllegalRecursionInTypeX: "illegal recursion in type \'$1\'",
|
errIllegalRecursionInTypeX: "illegal recursion in type '$1'",
|
||||||
errCannotInstantiateX: "cannot instantiate: \'$1\'",
|
errCannotInstantiateX: "cannot instantiate: '$1'",
|
||||||
errExprHasNoAddress: "expression has no address",
|
errExprHasNoAddress: "expression has no address",
|
||||||
errXStackEscape: "address of '$1' may not escape its stack frame",
|
errXStackEscape: "address of '$1' may not escape its stack frame",
|
||||||
errVarForOutParamNeededX: "for a \'var\' type a variable needs to be passed; but '$1' is immutable",
|
errVarForOutParamNeededX: "for a 'var' type a variable needs to be passed; but '$1' is immutable",
|
||||||
errPureTypeMismatch: "type mismatch",
|
errPureTypeMismatch: "type mismatch",
|
||||||
errTypeMismatch: "type mismatch: got <",
|
errTypeMismatch: "type mismatch: got <",
|
||||||
errButExpected: "but expected one of: ",
|
errButExpected: "but expected one of: ",
|
||||||
errButExpectedX: "but expected \'$1\'",
|
errButExpectedX: "but expected '$1'",
|
||||||
errAmbiguousCallXYZ: "ambiguous call; both $1 and $2 match for: $3",
|
errAmbiguousCallXYZ: "ambiguous call; both $1 and $2 match for: $3",
|
||||||
errWrongNumberOfArguments: "wrong number of arguments",
|
errWrongNumberOfArguments: "wrong number of arguments",
|
||||||
errWrongNumberOfArgumentsInCall: "wrong number of arguments in call to '$1'",
|
errWrongNumberOfArgumentsInCall: "wrong number of arguments in call to '$1'",
|
||||||
errMissingGenericParamsForTemplate: "'$1' has unspecified generic parameters",
|
errMissingGenericParamsForTemplate: "'$1' has unspecified generic parameters",
|
||||||
errXCannotBePassedToProcVar: "\'$1\' cannot be passed to a procvar",
|
errXCannotBePassedToProcVar: "'$1' cannot be passed to a procvar",
|
||||||
errPragmaOnlyInHeaderOfProcX: "pragmas are only allowed in the header of a proc; redefinition of $1",
|
errPragmaOnlyInHeaderOfProcX: "pragmas are only allowed in the header of a proc; redefinition of $1",
|
||||||
errImplOfXNotAllowed: "implementation of \'$1\' is not allowed",
|
errImplOfXNotAllowed: "implementation of '$1' is not allowed",
|
||||||
errImplOfXexpected: "implementation of \'$1\' expected",
|
errImplOfXexpected: "implementation of '$1' expected",
|
||||||
errNoSymbolToBorrowFromFound: "no symbol to borrow from found",
|
errNoSymbolToBorrowFromFound: "no symbol to borrow from found",
|
||||||
errDiscardValueX: "value of type '$1' has to be discarded",
|
errDiscardValueX: "value of type '$1' has to be discarded",
|
||||||
errInvalidDiscard: "statement returns no value that can be discarded",
|
errInvalidDiscard: "statement returns no value that can be discarded",
|
||||||
errIllegalConvFromXtoY: "conversion from $1 to $2 is invalid",
|
errIllegalConvFromXtoY: "conversion from $1 to $2 is invalid",
|
||||||
errCannotBindXTwice: "cannot bind parameter \'$1\' twice",
|
errCannotBindXTwice: "cannot bind parameter '$1' twice",
|
||||||
errInvalidOrderInArrayConstructor: "invalid order in array constructor",
|
errInvalidOrderInArrayConstructor: "invalid order in array constructor",
|
||||||
errInvalidOrderInEnumX: "invalid order in enum \'$1\'",
|
errInvalidOrderInEnumX: "invalid order in enum '$1'",
|
||||||
errEnumXHasHoles: "enum \'$1\' has holes",
|
errEnumXHasHoles: "enum '$1' has holes",
|
||||||
errExceptExpected: "\'except\' or \'finally\' expected",
|
errExceptExpected: "'except' or 'finally' expected",
|
||||||
errInvalidTry: "after catch all \'except\' or \'finally\' no section may follow",
|
errInvalidTry: "after catch all 'except' or 'finally' no section may follow",
|
||||||
errOptionExpected: "option expected, but found \'$1\'",
|
errOptionExpected: "option expected, but found '$1'",
|
||||||
errXisNoLabel: "\'$1\' is not a label",
|
errXisNoLabel: "'$1' is not a label",
|
||||||
errNotAllCasesCovered: "not all cases are covered",
|
errNotAllCasesCovered: "not all cases are covered",
|
||||||
errUnknownSubstitionVar: "unknown substitution variable: \'$1\'",
|
errUnknownSubstitionVar: "unknown substitution variable: '$1'",
|
||||||
errComplexStmtRequiresInd: "complex statement requires indentation",
|
errComplexStmtRequiresInd: "complex statement requires indentation",
|
||||||
errXisNotCallable: "\'$1\' is not callable",
|
errXisNotCallable: "'$1' is not callable",
|
||||||
errNoPragmasAllowedForX: "no pragmas allowed for $1",
|
errNoPragmasAllowedForX: "no pragmas allowed for $1",
|
||||||
errNoGenericParamsAllowedForX: "no generic parameters allowed for $1",
|
errNoGenericParamsAllowedForX: "no generic parameters allowed for $1",
|
||||||
errInvalidParamKindX: "invalid param kind: \'$1\'",
|
errInvalidParamKindX: "invalid param kind: '$1'",
|
||||||
errDefaultArgumentInvalid: "default argument invalid",
|
errDefaultArgumentInvalid: "default argument invalid",
|
||||||
errNamedParamHasToBeIdent: "named parameter has to be an identifier",
|
errNamedParamHasToBeIdent: "named parameter has to be an identifier",
|
||||||
errNoReturnTypeForX: "no return type allowed for $1",
|
errNoReturnTypeForX: "no return type allowed for $1",
|
||||||
|
|
@ -309,24 +309,24 @@ const
|
||||||
errInvalidPragmaX: "invalid pragma: $1",
|
errInvalidPragmaX: "invalid pragma: $1",
|
||||||
errXNotAllowedHere: "$1 not allowed here",
|
errXNotAllowedHere: "$1 not allowed here",
|
||||||
errInvalidControlFlowX: "invalid control flow: $1",
|
errInvalidControlFlowX: "invalid control flow: $1",
|
||||||
errXisNoType: "invalid type: \'$1\'",
|
errXisNoType: "invalid type: '$1'",
|
||||||
errCircumNeedsPointer: "'[]' needs a pointer or reference type",
|
errCircumNeedsPointer: "'[]' needs a pointer or reference type",
|
||||||
errInvalidExpression: "invalid expression",
|
errInvalidExpression: "invalid expression",
|
||||||
errInvalidExpressionX: "invalid expression: \'$1\'",
|
errInvalidExpressionX: "invalid expression: '$1'",
|
||||||
errEnumHasNoValueX: "enum has no value \'$1\'",
|
errEnumHasNoValueX: "enum has no value '$1'",
|
||||||
errNamedExprExpected: "named expression expected",
|
errNamedExprExpected: "named expression expected",
|
||||||
errNamedExprNotAllowed: "named expression not allowed here",
|
errNamedExprNotAllowed: "named expression not allowed here",
|
||||||
errXExpectsOneTypeParam: "\'$1\' expects one type parameter",
|
errXExpectsOneTypeParam: "'$1' expects one type parameter",
|
||||||
errArrayExpectsTwoTypeParams: "array expects two type parameters",
|
errArrayExpectsTwoTypeParams: "array expects two type parameters",
|
||||||
errInvalidVisibilityX: "invalid visibility: \'$1\'",
|
errInvalidVisibilityX: "invalid visibility: '$1'",
|
||||||
errInitHereNotAllowed: "initialization not allowed here",
|
errInitHereNotAllowed: "initialization not allowed here",
|
||||||
errXCannotBeAssignedTo: "\'$1\' cannot be assigned to",
|
errXCannotBeAssignedTo: "'$1' cannot be assigned to",
|
||||||
errIteratorNotAllowed: "iterators can only be defined at the module\'s top level",
|
errIteratorNotAllowed: "iterators can only be defined at the module's top level",
|
||||||
errXNeedsReturnType: "$1 needs a return type",
|
errXNeedsReturnType: "$1 needs a return type",
|
||||||
errNoReturnTypeDeclared: "no return type declared",
|
errNoReturnTypeDeclared: "no return type declared",
|
||||||
errNoCommand: "no command given",
|
errNoCommand: "no command given",
|
||||||
errInvalidCommandX: "invalid command: \'$1\'",
|
errInvalidCommandX: "invalid command: '$1'",
|
||||||
errXOnlyAtModuleScope: "\'$1\' is only allowed at top level",
|
errXOnlyAtModuleScope: "'$1' is only allowed at top level",
|
||||||
errXNeedsParamObjectType: "'$1' needs a parameter that has an object type",
|
errXNeedsParamObjectType: "'$1' needs a parameter that has an object type",
|
||||||
errTemplateInstantiationTooNested: "template instantiation too nested, try --evalTemplateLimit:N",
|
errTemplateInstantiationTooNested: "template instantiation too nested, try --evalTemplateLimit:N",
|
||||||
errMacroInstantiationTooNested: "macro instantiation too nested, try --evalMacroLimit:N",
|
errMacroInstantiationTooNested: "macro instantiation too nested, try --evalMacroLimit:N",
|
||||||
|
|
@ -334,17 +334,17 @@ const
|
||||||
errInvalidIndexValueForTuple: "invalid index value for tuple subscript",
|
errInvalidIndexValueForTuple: "invalid index value for tuple subscript",
|
||||||
errCommandExpectsFilename: "command expects a filename argument",
|
errCommandExpectsFilename: "command expects a filename argument",
|
||||||
errMainModuleMustBeSpecified: "please, specify a main module in the project configuration file",
|
errMainModuleMustBeSpecified: "please, specify a main module in the project configuration file",
|
||||||
errXExpected: "\'$1\' expected",
|
errXExpected: "'$1' expected",
|
||||||
errTIsNotAConcreteType: "\'$1\' is not a concrete type.",
|
errTIsNotAConcreteType: "'$1' is not a concrete type.",
|
||||||
errCastToANonConcreteType: "cannot cast to a non concrete type: \'$1\'",
|
errCastToANonConcreteType: "cannot cast to a non concrete type: '$1'",
|
||||||
errInvalidSectionStart: "invalid section start",
|
errInvalidSectionStart: "invalid section start",
|
||||||
errGridTableNotImplemented: "grid table is not implemented",
|
errGridTableNotImplemented: "grid table is not implemented",
|
||||||
errGeneralParseError: "general parse error",
|
errGeneralParseError: "general parse error",
|
||||||
errNewSectionExpected: "new section expected",
|
errNewSectionExpected: "new section expected",
|
||||||
errWhitespaceExpected: "whitespace expected, got \'$1\'",
|
errWhitespaceExpected: "whitespace expected, got '$1'",
|
||||||
errXisNoValidIndexFile: "\'$1\' is no valid index file",
|
errXisNoValidIndexFile: "'$1' is no valid index file",
|
||||||
errCannotRenderX: "cannot render reStructuredText element \'$1\'",
|
errCannotRenderX: "cannot render reStructuredText element '$1'",
|
||||||
errVarVarTypeNotAllowed: "type \'var var\' is not allowed",
|
errVarVarTypeNotAllowed: "type 'var var' is not allowed",
|
||||||
errInstantiateXExplicitly: "instantiate '$1' explicitly",
|
errInstantiateXExplicitly: "instantiate '$1' explicitly",
|
||||||
errOnlyACallOpCanBeDelegator: "only a call operator can be a delegator",
|
errOnlyACallOpCanBeDelegator: "only a call operator can be a delegator",
|
||||||
errUsingNoSymbol: "'$1' is not a variable, constant or a proc name",
|
errUsingNoSymbol: "'$1' is not a variable, constant or a proc name",
|
||||||
|
|
@ -354,26 +354,26 @@ const
|
||||||
"A destructor must be associated will all instantiations of a generic type",
|
"A destructor must be associated will all instantiations of a generic type",
|
||||||
errInlineIteratorsAsProcParams: "inline iterators can be used as parameters only for " &
|
errInlineIteratorsAsProcParams: "inline iterators can be used as parameters only for " &
|
||||||
"templates, macros and other inline iterators",
|
"templates, macros and other inline iterators",
|
||||||
errXExpectsTwoArguments: "\'$1\' expects two arguments",
|
errXExpectsTwoArguments: "'$1' expects two arguments",
|
||||||
errXExpectsObjectTypes: "\'$1\' expects object types",
|
errXExpectsObjectTypes: "'$1' expects object types",
|
||||||
errXcanNeverBeOfThisSubtype: "\'$1\' can never be of this subtype",
|
errXcanNeverBeOfThisSubtype: "'$1' can never be of this subtype",
|
||||||
errTooManyIterations: "interpretation requires too many iterations; " &
|
errTooManyIterations: "interpretation requires too many iterations; " &
|
||||||
"if you are sure this is not a bug in your code edit " &
|
"if you are sure this is not a bug in your code edit " &
|
||||||
"compiler/vmdef.MaxLoopIterations and rebuild the compiler",
|
"compiler/vmdef.MaxLoopIterations and rebuild the compiler",
|
||||||
errCannotInterpretNodeX: "cannot evaluate \'$1\'",
|
errCannotInterpretNodeX: "cannot evaluate '$1'",
|
||||||
errFieldXNotFound: "field \'$1\' cannot be found",
|
errFieldXNotFound: "field '$1' cannot be found",
|
||||||
errInvalidConversionFromTypeX: "invalid conversion from type \'$1\'",
|
errInvalidConversionFromTypeX: "invalid conversion from type '$1'",
|
||||||
errAssertionFailed: "assertion failed",
|
errAssertionFailed: "assertion failed",
|
||||||
errCannotGenerateCodeForX: "cannot generate code for \'$1\'",
|
errCannotGenerateCodeForX: "cannot generate code for '$1'",
|
||||||
errXRequiresOneArgument: "$1 requires one parameter",
|
errXRequiresOneArgument: "$1 requires one parameter",
|
||||||
errUnhandledExceptionX: "unhandled exception: $1",
|
errUnhandledExceptionX: "unhandled exception: $1",
|
||||||
errCyclicTree: "macro returned a cyclic abstract syntax tree",
|
errCyclicTree: "macro returned a cyclic abstract syntax tree",
|
||||||
errXisNoMacroOrTemplate: "\'$1\' is no macro or template",
|
errXisNoMacroOrTemplate: "'$1' is no macro or template",
|
||||||
errXhasSideEffects: "\'$1\' can have side effects",
|
errXhasSideEffects: "'$1' can have side effects",
|
||||||
errIteratorExpected: "iterator within for loop context expected",
|
errIteratorExpected: "iterator within for loop context expected",
|
||||||
errLetNeedsInit: "'let' symbol requires an initialization",
|
errLetNeedsInit: "'let' symbol requires an initialization",
|
||||||
errThreadvarCannotInit: "a thread var cannot be initialized explicitly; this would only run for the main thread",
|
errThreadvarCannotInit: "a thread var cannot be initialized explicitly; this would only run for the main thread",
|
||||||
errWrongSymbolX: "usage of \'$1\' is a user-defined error",
|
errWrongSymbolX: "usage of '$1' is a user-defined error",
|
||||||
errIllegalCaptureX: "illegal capture '$1'",
|
errIllegalCaptureX: "illegal capture '$1'",
|
||||||
errXCannotBeClosure: "'$1' cannot have 'closure' calling convention",
|
errXCannotBeClosure: "'$1' cannot have 'closure' calling convention",
|
||||||
errXMustBeCompileTime: "'$1' can only be used in compile-time context",
|
errXMustBeCompileTime: "'$1' can only be used in compile-time context",
|
||||||
|
|
@ -384,22 +384,22 @@ const
|
||||||
"it is used as an operand to another routine and the types " &
|
"it is used as an operand to another routine and the types " &
|
||||||
"of the generic paramers can be inferred from the expected signature.",
|
"of the generic paramers can be inferred from the expected signature.",
|
||||||
errProcHasNoConcreteType: "'$1' doesn't have a concrete type, due to unspecified generic parameters.",
|
errProcHasNoConcreteType: "'$1' doesn't have a concrete type, due to unspecified generic parameters.",
|
||||||
errCompilerDoesntSupportTarget: "The current compiler \'$1\' doesn't support the requested compilation target",
|
errCompilerDoesntSupportTarget: "The current compiler '$1' doesn't support the requested compilation target",
|
||||||
errInOutFlagNotExtern: "The `$1` modifier can be used only with imported types",
|
errInOutFlagNotExtern: "The `$1` modifier can be used only with imported types",
|
||||||
errUser: "$1",
|
errUser: "$1",
|
||||||
warnCannotOpenFile: "cannot open \'$1\'",
|
warnCannotOpenFile: "cannot open '$1'",
|
||||||
warnOctalEscape: "octal escape sequences do not exist; leading zero is ignored",
|
warnOctalEscape: "octal escape sequences do not exist; leading zero is ignored",
|
||||||
warnXIsNeverRead: "\'$1\' is never read",
|
warnXIsNeverRead: "'$1' is never read",
|
||||||
warnXmightNotBeenInit: "\'$1\' might not have been initialized",
|
warnXmightNotBeenInit: "'$1' might not have been initialized",
|
||||||
warnDeprecated: "$1 is deprecated",
|
warnDeprecated: "$1 is deprecated",
|
||||||
warnConfigDeprecated: "config file '$1' is deprecated",
|
warnConfigDeprecated: "config file '$1' is deprecated",
|
||||||
warnSmallLshouldNotBeUsed: "\'l\' should not be used as an identifier; may look like \'1\' (one)",
|
warnSmallLshouldNotBeUsed: "'l' should not be used as an identifier; may look like '1' (one)",
|
||||||
warnUnknownMagic: "unknown magic \'$1\' might crash the compiler",
|
warnUnknownMagic: "unknown magic '$1' might crash the compiler",
|
||||||
warnRedefinitionOfLabel: "redefinition of label \'$1\'",
|
warnRedefinitionOfLabel: "redefinition of label '$1'",
|
||||||
warnUnknownSubstitutionX: "unknown substitution \'$1\'",
|
warnUnknownSubstitutionX: "unknown substitution '$1'",
|
||||||
warnLanguageXNotSupported: "language \'$1\' not supported",
|
warnLanguageXNotSupported: "language '$1' not supported",
|
||||||
warnFieldXNotSupported: "field \'$1\' not supported",
|
warnFieldXNotSupported: "field '$1' not supported",
|
||||||
warnCommentXIgnored: "comment \'$1\' ignored",
|
warnCommentXIgnored: "comment '$1' ignored",
|
||||||
warnTypelessParam: "'$1' has no type. Typeless parameters are deprecated; only allowed for 'template'",
|
warnTypelessParam: "'$1' has no type. Typeless parameters are deprecated; only allowed for 'template'",
|
||||||
warnUseBase: "use {.base.} for base methods; baseless methods are deprecated",
|
warnUseBase: "use {.base.} for base methods; baseless methods are deprecated",
|
||||||
warnWriteToForeignHeap: "write to foreign heap",
|
warnWriteToForeignHeap: "write to foreign heap",
|
||||||
|
|
@ -421,15 +421,15 @@ const
|
||||||
hintSuccess: "operation successful",
|
hintSuccess: "operation successful",
|
||||||
hintSuccessX: "operation successful ($# lines compiled; $# sec total; $#; $#)",
|
hintSuccessX: "operation successful ($# lines compiled; $# sec total; $#; $#)",
|
||||||
hintLineTooLong: "line too long",
|
hintLineTooLong: "line too long",
|
||||||
hintXDeclaredButNotUsed: "\'$1\' is declared but not used",
|
hintXDeclaredButNotUsed: "'$1' is declared but not used",
|
||||||
hintConvToBaseNotNeeded: "conversion to base object is not needed",
|
hintConvToBaseNotNeeded: "conversion to base object is not needed",
|
||||||
hintConvFromXtoItselfNotNeeded: "conversion from $1 to itself is pointless",
|
hintConvFromXtoItselfNotNeeded: "conversion from $1 to itself is pointless",
|
||||||
hintExprAlwaysX: "expression evaluates always to \'$1\'",
|
hintExprAlwaysX: "expression evaluates always to '$1'",
|
||||||
hintQuitCalled: "quit() called",
|
hintQuitCalled: "quit() called",
|
||||||
hintProcessing: "$1",
|
hintProcessing: "$1",
|
||||||
hintCodeBegin: "generated code listing:",
|
hintCodeBegin: "generated code listing:",
|
||||||
hintCodeEnd: "end of listing",
|
hintCodeEnd: "end of listing",
|
||||||
hintConf: "used config file \'$1\'",
|
hintConf: "used config file '$1'",
|
||||||
hintPath: "added path: '$1'",
|
hintPath: "added path: '$1'",
|
||||||
hintConditionAlwaysTrue: "condition is always true: '$1'",
|
hintConditionAlwaysTrue: "condition is always true: '$1'",
|
||||||
hintName: "name should be: '$1'",
|
hintName: "name should be: '$1'",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue