src/Messages.tbl
author David Anderson <dvander@alliedmods.net>
Sun Jul 29 19:47:31 2012 -0700 (2012-07-29)
changeset 136 7b32fc1bf153
parent 129 86b368a4d80d
child 145 e9d804821c48
permissions -rw-r--r--
Fix parser not initializing FunctionStatement::tag_.
dvander@25
     1
MSG(UnterminatedComment,            SyntaxError,            "unterminated comment")
dvander@25
     2
MSG(UnexpectedCharacter,            SyntaxError,            "unexpected character '%c' (code %02X)")
dvander@25
     3
MSG(UnterminatedString,             SyntaxError,            "unterminated string")
dvander@25
     4
MSG(UnknownEscapeCode,              SyntaxError,            "unknown escape code '%c'")
dvander@25
     5
MSG(ExpectedDigitForFloat,          SyntaxError,            "expected digit in float literal, got '%c'")
dvander@25
     6
MSG(WrongToken,                     SyntaxError,            "expected token '%s', got '%s'")
dvander@25
     7
MSG(ExpectedExpression,             SyntaxError,            "expected expression, got '%s'")
dvander@25
     8
MSG(RedeclaredName,                 SyntaxError,            "name '%s' was redeclared (previous at line %d, col %d)")
dvander@25
     9
MSG(ExpectedLValue,                 SyntaxError,            "impossible assignment, expected l-value")
dvander@25
    10
MSG(MaximumArrayDepth,              SyntaxError,            "maximum array dimension depth exceeded")
dvander@25
    11
MSG(ArrayInitializerDepth,          SyntaxError,            "array declaration and initializer have different dimension counts")
dvander@25
    12
MSG(BadArraySize,                   SyntaxError,            "array size must be positive")
dvander@25
    13
MSG(ArraySizeTooBig,                SyntaxError,            "array size is too big")
dvander@25
    14
MSG(EnumFieldNotConstant,           SyntaxError,            "enum fields must be constant integers")
dvander@25
    15
MSG(BreakOutsideLoop,               SyntaxError,            "break occurs outside any loop")
dvander@25
    16
MSG(ContinueOutsideLoop,            SyntaxError,            "continue occurs outside any loop")
dvander@25
    17
MSG(InvalidEnumName,                SyntaxError,            "invalid enumeration name")
dvander@25
    18
MSG(IndexMustBeInteger,             SyntaxError,            "array index must be integer")
dvander@25
    19
MSG(IndexBaseMustBeArray,           SyntaxError,            "cannot index into non-array")
dvander@25
    20
MSG(ArrayIsNotBoolean,              SyntaxError,            "cannot convert an array to boolean")
dvander@25
    21
MSG(CalleeNotFunction,              SyntaxError,            "callee is not a function")
dvander@25
    22
MSG(ArgumentCountMismatch,          SyntaxError,            "argument counts do not match")
dvander@25
    23
MSG(CannotAssignArrayToScalar,      SyntaxError,            "cannot coerce an array to a scalar")
dvander@25
    24
MSG(UnsupportedType,                SyntaxError,            "unsupported type")
dvander@25
    25
MSG(TagMismatch,                    SyntaxError,            "tag mismatch (expected '%s', got '%s')")
dvander@25
    26
MSG(ArrayDimensionsMismatch,        SyntaxError,            "number of array dimensions does not match")
dvander@25
    27
MSG(ExpectedArray,                  SyntaxError,            "expected array")
dvander@25
    28
MSG(ArrayDimensionSizeMismatch,     SyntaxError,            "array dimension sizes do not match (level %d)")
dvander@25
    29
MSG(ArrayDimensionNotInteger,       SyntaxError,            "array dimension size must be an integer expression")
dvander@25
    30
MSG(ArrayNotSupported,              SyntaxError,            "array declaration not yet supported")
dvander@25
    31
MSG(ArrayInitializerUnknown,        SyntaxError,            "array initialized size is not known")
dvander@25
    32
MSG(DynamicArrayHasInitializer,     SyntaxError,            "dynamic arrays cannot have initializers")
dvander@25
    33
MSG(ArraySizeNotSpecified,          SyntaxError,            "array size was not specified")
dvander@25
    34
MSG(ArraySizeCannotBeDetermined,    SyntaxError,            "array size cannot be determined from initializer")
dvander@25
    35
MSG(ArrayAssignmentTooBig,          SyntaxError,            "destination array is too small")
dvander@25
    36
MSG(CannotDeclareStringCell,        SyntaxError,            "cannot declare a String cell")
dvander@25
    37
MSG(BinaryTypeError,                SyntaxError,            "operator '%s' does not support types '%s' and '%s'")
dvander@25
    38
MSG(ArraySizeNotKnown,              SyntaxError,            "array size is not known")
dvander@60
    39
MSG(UnaryTypeError,                 SyntaxError,            "operator '%s' does not support type '%s'")
dvander@60
    40
MSG(CantOpenFile,                   SyntaxError,            "cannot open file")
dvander@60
    41
MSG(ErrorSeekingFile,               SyntaxError,            "error seeking file")
dvander@60
    42
MSG(ErrorReadingFile,               SyntaxError,            "error reading file")
dvander@63
    43
MSG(ExpectedGlobal,                 SyntaxError,            "expected global variable or function")
dvander@63
    44
MSG(ForwardNotImplemented,          SyntaxError,            "forward '%s' not implemented")
dvander@66
    45
MSG(ForwardDeclareMismatches,       SyntaxError,            "declaration does not match original forward signature")
dvander@66
    46
MSG(ArrayCantBeReference,           SyntaxError,            "a parameter cannot be both an array and a reference")
dvander@67
    47
MSG(ArraySizeMustBeConstant,        SyntaxError,            "array size must be a constant integer")
dvander@68
    48
MSG(ReferenceIsConstant,            SyntaxError,            "cannot assign to a constant lvalue")
dvander@68
    49
MSG(MultiArrayInNative,             SyntaxError,            "multidimensional arrays cannot be passed to natives")
dvander@68
    50
MSG(InvalidVarArgs,                 SyntaxError,            "varargs cannot be const or ref")
dvander@68
    51
MSG(VarArgsOutsideNative,           SyntaxError,            "variadic arguments can only be specified on natives")
dvander@69
    52
MSG(ArrayTooBig,                    TypeError,              "array size is too large")
dvander@69
    53
MSG(IntegerDivideByZero,            TypeError,              "integer divide by zero")
dvander@69
    54
MSG(ArrayIndexOutOfBounds,          TypeError,              "array index %d is out of bounds [0, %d)")
dvander@69
    55
MSG(NativeNotBound,                 TypeError,              "attempted to call unbound native \"%s\"")
dvander@69
    56
MSG(AllocationOverflow,             SystemError,            "allocation request overflowed")
dvander@71
    57
MSG(TooMuchRecursion,               SystemError,            "stack overflow: too much recursion")
dvander@71
    58
MSG(MissingReturnValue,             SyntaxError,            "tagged function must return a value")
dvander@71
    59
MSG(NotAllPathsReturnValue,         SyntaxError,            "not all paths through function return a value")
dvander@71
    60
MSG(UsedVoidReturn,                 SyntaxError,            "return value expected, but function does not return a value")
dvander@84
    61
MSG(FunctionDoesNotReturnValue,     SyntaxError,            "cannot use the result of a function with no return value")
dvander@129
    62
MSG(IdentifierNotFound,             SyntaxError,            "identifier '%s' could not be found")
dvander@129
    63
MSG(TypeMismatchDuringInvoke,       SyntaxError,            "incoming type '%s' does not match signature type '%s'")
dvander@129
    64
MSG(CannotInvokeReturnType,         SyntaxError,            "cannot invoke function with return type '%s'")
dvander@129
    65