src/Messages.tbl
author David Anderson <dvander@alliedmods.net>
Sun Jan 06 13:52:21 2013 -0800 (2013-01-06)
changeset 256 3c184218462d
parent 251 ca99a81745fe
child 258 241d082d6d89
permissions -rw-r--r--
Initial implementation of module imports.
[email protected]
     1
MSG(UnterminatedComment,            SyntaxError,            "unterminated comment")
[email protected]
     2
MSG(UnexpectedCharacter,            SyntaxError,            "unexpected character '%c' (code %02X)")
[email protected]
     3
MSG(UnterminatedString,             SyntaxError,            "unterminated string")
[email protected]
     4
MSG(UnknownEscapeCode,              SyntaxError,            "unknown escape code '%c'")
[email protected]
     5
MSG(ExpectedDigitForFloat,          SyntaxError,            "expected digit in float literal, got '%c'")
[email protected]
     6
MSG(WrongToken,                     SyntaxError,            "expected token '%s', got '%s'")
[email protected]
     7
MSG(ExpectedExpression,             SyntaxError,            "expected expression, got '%s'")
[email protected]
     8
MSG(RedeclaredName,                 SyntaxError,            "name '%s' was redeclared (previous at line %d, col %d)")
[email protected]
     9
MSG(ExpectedLValue,                 SyntaxError,            "impossible assignment, expected l-value")
[email protected]
    10
MSG(MaximumArrayDepth,              TypeError,              "maximum array dimension depth exceeded")
[email protected]
    11
MSG(ArrayInitializerDepth,          SyntaxError,            "array declaration and initializer have different dimension counts")
[email protected]
    12
MSG(BadArraySize,                   SyntaxError,            "array size must be positive")
[email protected]
    13
MSG(ArraySizeTooBig,                SyntaxError,            "array size is too big")
[email protected]
    14
MSG(EnumFieldNotConstant,           SyntaxError,            "enum fields must be constant integers")
[email protected]
    15
MSG(BreakOutsideLoop,               SyntaxError,            "break occurs outside any loop")
[email protected]
    16
MSG(ContinueOutsideLoop,            SyntaxError,            "continue occurs outside any loop")
[email protected]
    17
MSG(InvalidEnumName,                SyntaxError,            "invalid enumeration name")
[email protected]
    18
MSG(IndexMustBeInteger,             SyntaxError,            "array index must be integer")
[email protected]
    19
MSG(IndexBaseMustBeArray,           SyntaxError,            "cannot index into non-array")
[email protected]
    20
MSG(ArrayIsNotBoolean,              SyntaxError,            "cannot convert an array to boolean")
[email protected]
    21
MSG(CalleeNotFunction,              SyntaxError,            "callee is not a function")
[email protected]
    22
MSG(ArgumentCountMismatch,          SyntaxError,            "argument counts do not match")
[email protected]
    23
MSG(CannotAssignArrayToScalar,      SyntaxError,            "cannot coerce an array to a scalar")
[email protected]
    24
MSG(ArrayDimensionsMismatch,        SyntaxError,            "number of array dimensions does not match")
[email protected]
    25
MSG(ExpectedArray,                  SyntaxError,            "expected array")
[email protected]
    26
MSG(ArrayDimensionSizeMismatch,     SyntaxError,            "array dimension sizes do not match (level %d)")
[email protected]
    27
MSG(ArrayDimensionNotInteger,       SyntaxError,            "array dimension size must be an integer expression")
[email protected]
    28
MSG(ArrayNotSupported,              SyntaxError,            "array declaration not yet supported")
[email protected]
    29
MSG(ArrayInitializerUnknown,        SyntaxError,            "array initialized size is not known")
[email protected]
    30
MSG(DynamicArrayHasInitializer,     SyntaxError,            "dynamic arrays cannot have initializers")
[email protected]
    31
MSG(ArraySizeNotSpecified,          SyntaxError,            "array size was not specified")
[email protected]
    32
MSG(ArraySizeCannotBeDetermined,    SyntaxError,            "array size cannot be determined from initializer")
[email protected]
    33
MSG(ArrayAssignmentTooBig,          SyntaxError,            "destination array is too small")
[email protected]
    34
MSG(CannotDeclareStringCell,        SyntaxError,            "cannot declare a String cell")
[email protected]
    35
MSG(CantOpenFile,                   SyntaxError,            "cannot open file")
[email protected]
    36
MSG(ErrorSeekingFile,               SyntaxError,            "error seeking file")
[email protected]
    37
MSG(ErrorReadingFile,               SyntaxError,            "error reading file")
[email protected]
    38
MSG(ExpectedGlobal,                 SyntaxError,            "expected global variable or function")
[email protected]
    39
MSG(ForwardNotImplemented,          SyntaxError,            "forward '%s' not implemented")
[email protected]
    40
MSG(ForwardDeclareMismatches,       SyntaxError,            "declaration does not match original forward signature")
[email protected]
    41
MSG(ArrayCantBeReference,           TypeError,              "this type cannot be used with a reference")
[email protected]
    42
MSG(ArraySizeMustBeConstant,        SyntaxError,            "array size must be a constant integer")
[email protected]
    43
MSG(MultiArrayInNative,             SyntaxError,            "multidimensional arrays cannot be passed to natives")
[email protected]
    44
MSG(InvalidVarArgs,                 SyntaxError,            "varargs cannot be const or ref")
[email protected]
    45
MSG(VarArgsOutsideNative,           SyntaxError,            "variadic arguments can only be specified on natives")
[email protected]
    46
MSG(ArrayTooBig,                    TypeError,              "array size is too large")
[email protected]
    47
MSG(IntegerDivideByZero,            TypeError,              "integer divide by zero")
[email protected]
    48
MSG(ArrayIndexOutOfBounds,          TypeError,              "array index %d is out of bounds [0, %d)")
[email protected]
    49
MSG(NativeNotBound,                 TypeError,              "attempted to call unbound native \"%s\"")
[email protected]
    50
MSG(AllocationOverflow,             SystemError,            "allocation request overflowed")
[email protected]
    51
MSG(TooMuchRecursion,               SystemError,            "stack overflow: too much recursion")
[email protected]
    52
MSG(MissingReturnValue,             SyntaxError,            "function must return a value")
[email protected]
    53
MSG(NotAllPathsReturnValue,         SyntaxError,            "not all paths through function return a value")
[email protected]
    54
MSG(UsedVoidReturn,                 SyntaxError,            "value returned, but function is void")
[email protected]
    55
MSG(CannotDeclareVoid,              TypeError,              "cannot declare void variables")
[email protected]
    56
MSG(FunctionDoesNotReturnValue,     SyntaxError,            "cannot use the result of a function with no return value")
[email protected]
    57
MSG(IdentifierNotFound,             SyntaxError,            "identifier '%s' could not be found")
[email protected]
    58
MSG(TypeMismatchDuringInvoke,       TypeError,              "incoming type '%s' does not match signature type '%s'")
[email protected]
    59
MSG(CannotInvokeReturnType,         SyntaxError,            "cannot invoke function with return type '%s'")
[email protected]
    60
MSG(IdentifierIsNotAType,           SyntaxError,            "identifier '%s' cannot be used as a type")
[email protected]
    61
MSG(TypeMismatch,                   TypeError,              "type mismatch (expected '%s', got '%s')")
[email protected]
    62
MSG(PropertyNotFound,               TypeError,              "property '%s' not found on type '%s'")
[email protected]
    63
MSG(MustBeConstant,                 SyntaxError,            "default value must be a constant")
[email protected]
    64
MSG(DefaultMustBeLastCase,          SyntaxError,            "the \"default\" case must be the last case in a switch statement")
[email protected]
    65
MSG(OneDefaultPerSwitch,            SyntaxError,            "only one default case is allowed per switch")
[email protected]
    66
MSG(SingleStatementPerCase,         SyntaxError,            "only one statement is allowed per case")
[email protected]
    67
MSG(CaseMustBeConstant,             SyntaxError,            "case expression must be a constant")
[email protected]
    68
MSG(CaseHasSameValue,               SyntaxError,            "case value appears twice in the same switch")
[email protected]
    69
MSG(CaseMustBeInteger,              SyntaxError,            "switch may only operate on integer values")
[email protected]
    70
MSG(StructCantBeEmpty,              SyntaxError,            "struct cannot be declared without any fields")
[email protected]
    71
MSG(CannotInitializeEvalArray,      SyntaxError,            "cannot mix dynamic array sizes and initializers")
[email protected]
    72
MSG(ExpectedStringLiteral,          SyntaxError,            "expected string literal")
[email protected]
    73
MSG(UnexpectedArrayLiteral,         SyntaxError,            "unexpected array literal")
[email protected]
    74
MSG(InvalidDimensionSize,           TypeError,              "invalid size %d for dimension %d")
[email protected]
    75
MSG(CannotComputeIndexRef,          SyntaxError,            "cannot use an array index as a reference")
[email protected]
    76
MSG(BadDynamicInitializer,          SyntaxError,            "dynamic length specified, but preceding array is empty")
[email protected]
    77
MSG(SizeofNeedsArray,               TypeError,              "sizeof requires an array")
[email protected]
    78
MSG(ImportsMustBeFirst,             SyntaxError,            "import statements must come before other statements")
[email protected]
    79
MSG(ImportedNameAlreadyBound,       TypeError,              "imported name has already been bound")
[email protected]
    80
MSG(CannotResolveImport,            TypeError,              "cannot resolve import %s")
[email protected]
    81
MSG(InvalidCoercion,                TypeError,              "cannot coerce type '%s' to type '%s'")
[email protected]
    82
MSG(CannotConstReference,           TypeError,              "constant outparams are not allowed")
[email protected]
    83
MSG(CannotModifyConst,              TypeError,              "cannot change constant value or structure")
[email protected]
    84
MSG(InvalidConstOnFormal,           TypeError,              "const parameters must be arrays or structs")
[email protected]
    85
MSG(InvalidUncheckedCastFrom,       TypeError,              "cannot perform an unchecked cast on type '%s'")
[email protected]
    86
MSG(InvalidUncheckedCastTo,         TypeError,              "cannot perform an unchecked cast to type '%s'")
[email protected]
    87
MSG(InvalidUnaryType,               TypeError,              "operator %s not defined for type '%s'")
[email protected]
    88
MSG(CannotImportPath,               SyntaxError,            "could not find module or import '%s'")
[email protected]
    89
MSG(DuplicateImport,                SyntaxError,            "duplicate import name '%s'")
[email protected]
    90
MSG(InvalidFieldExpression,			TypeError,				"type '%s' does not have any fields")
[email protected]
    91
MSG(PackageDoesNotHaveMember,		TypeError,				"package does not have member '%s' (check imports)")
[email protected]
    92
MSG(ImportWasNeverImported,         TypeError,              "'%s' was never imported")
[email protected]
    93
MSG(FieldNotFound,                  TypeError,              "field '%s' not found")