src/Messages.tbl
author David Anderson <dvander@alliedmods.net>
Sat Aug 04 20:12:20 2012 -0700 (2012-08-04)
changeset 148 c0740249963c
parent 145 e9d804821c48
child 164 3bf7c007883d
permissions -rw-r--r--
All but interpreter support for getting and setting struct fields.
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(ArrayDimensionsMismatch,        SyntaxError,            "number of array dimensions does not match")
dvander@25
    26
MSG(ExpectedArray,                  SyntaxError,            "expected array")
dvander@25
    27
MSG(ArrayDimensionSizeMismatch,     SyntaxError,            "array dimension sizes do not match (level %d)")
dvander@25
    28
MSG(ArrayDimensionNotInteger,       SyntaxError,            "array dimension size must be an integer expression")
dvander@25
    29
MSG(ArrayNotSupported,              SyntaxError,            "array declaration not yet supported")
dvander@25
    30
MSG(ArrayInitializerUnknown,        SyntaxError,            "array initialized size is not known")
dvander@25
    31
MSG(DynamicArrayHasInitializer,     SyntaxError,            "dynamic arrays cannot have initializers")
dvander@25
    32
MSG(ArraySizeNotSpecified,          SyntaxError,            "array size was not specified")
dvander@25
    33
MSG(ArraySizeCannotBeDetermined,    SyntaxError,            "array size cannot be determined from initializer")
dvander@25
    34
MSG(ArrayAssignmentTooBig,          SyntaxError,            "destination array is too small")
dvander@25
    35
MSG(CannotDeclareStringCell,        SyntaxError,            "cannot declare a String cell")
dvander@25
    36
MSG(BinaryTypeError,                SyntaxError,            "operator '%s' does not support types '%s' and '%s'")
dvander@25
    37
MSG(ArraySizeNotKnown,              SyntaxError,            "array size is not known")
dvander@60
    38
MSG(UnaryTypeError,                 SyntaxError,            "operator '%s' does not support type '%s'")
dvander@60
    39
MSG(CantOpenFile,                   SyntaxError,            "cannot open file")
dvander@60
    40
MSG(ErrorSeekingFile,               SyntaxError,            "error seeking file")
dvander@60
    41
MSG(ErrorReadingFile,               SyntaxError,            "error reading file")
dvander@63
    42
MSG(ExpectedGlobal,                 SyntaxError,            "expected global variable or function")
dvander@63
    43
MSG(ForwardNotImplemented,          SyntaxError,            "forward '%s' not implemented")
dvander@66
    44
MSG(ForwardDeclareMismatches,       SyntaxError,            "declaration does not match original forward signature")
dvander@66
    45
MSG(ArrayCantBeReference,           SyntaxError,            "a parameter cannot be both an array and a reference")
dvander@67
    46
MSG(ArraySizeMustBeConstant,        SyntaxError,            "array size must be a constant integer")
dvander@68
    47
MSG(ReferenceIsConstant,            SyntaxError,            "cannot assign to a constant lvalue")
dvander@68
    48
MSG(MultiArrayInNative,             SyntaxError,            "multidimensional arrays cannot be passed to natives")
dvander@68
    49
MSG(InvalidVarArgs,                 SyntaxError,            "varargs cannot be const or ref")
dvander@68
    50
MSG(VarArgsOutsideNative,           SyntaxError,            "variadic arguments can only be specified on natives")
dvander@69
    51
MSG(ArrayTooBig,                    TypeError,              "array size is too large")
dvander@69
    52
MSG(IntegerDivideByZero,            TypeError,              "integer divide by zero")
dvander@69
    53
MSG(ArrayIndexOutOfBounds,          TypeError,              "array index %d is out of bounds [0, %d)")
dvander@69
    54
MSG(NativeNotBound,                 TypeError,              "attempted to call unbound native \"%s\"")
dvander@69
    55
MSG(AllocationOverflow,             SystemError,            "allocation request overflowed")
dvander@71
    56
MSG(TooMuchRecursion,               SystemError,            "stack overflow: too much recursion")
dvander@71
    57
MSG(MissingReturnValue,             SyntaxError,            "tagged function must return a value")
dvander@71
    58
MSG(NotAllPathsReturnValue,         SyntaxError,            "not all paths through function return a value")
dvander@71
    59
MSG(UsedVoidReturn,                 SyntaxError,            "return value expected, but function does not return a value")
dvander@84
    60
MSG(FunctionDoesNotReturnValue,     SyntaxError,            "cannot use the result of a function with no return value")
dvander@129
    61
MSG(IdentifierNotFound,             SyntaxError,            "identifier '%s' could not be found")
dvander@148
    62
MSG(TypeMismatchDuringInvoke,       TypeError,              "incoming type '%s' does not match signature type '%s'")
dvander@129
    63
MSG(CannotInvokeReturnType,         SyntaxError,            "cannot invoke function with return type '%s'")
dvander@145
    64
MSG(TypeNotFound,                   SyntaxError,            "type '%s' could not be found")
dvander@145
    65
MSG(IdentifierIsNotAType,           SyntaxError,            "identifier '%s' cannot be used as a type")
dvander@148
    66
MSG(TypeMismatch,                   TypeError,              "type mismatch (expected '%s', got '%s')")
dvander@148
    67
MSG(PropertyNotFound,               TypeError,              "property '%s' not found on type '%s'")
dvander@129
    68