src/Messages.tbl
author Asher Baker <asherkin@gmail.com>
Mon Jun 10 01:04:43 2013 +0100 (2013-06-10)
changeset 263 ba85a47ee414
parent 259 99ab8b19f0b9
permissions -rw-r--r--
Normalise line endings.
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@212
    10
MSG(MaximumArrayDepth,              TypeError,              "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(ArrayDimensionsMismatch,        SyntaxError,            "number of array dimensions does not match")
dvander@25
    25
MSG(ExpectedArray,                  SyntaxError,            "expected array")
dvander@25
    26
MSG(ArrayDimensionSizeMismatch,     SyntaxError,            "array dimension sizes do not match (level %d)")
dvander@25
    27
MSG(ArrayDimensionNotInteger,       SyntaxError,            "array dimension size must be an integer expression")
dvander@25
    28
MSG(ArrayNotSupported,              SyntaxError,            "array declaration not yet supported")
dvander@25
    29
MSG(ArrayInitializerUnknown,        SyntaxError,            "array initialized size is not known")
dvander@25
    30
MSG(DynamicArrayHasInitializer,     SyntaxError,            "dynamic arrays cannot have initializers")
dvander@25
    31
MSG(ArraySizeNotSpecified,          SyntaxError,            "array size was not specified")
dvander@25
    32
MSG(ArraySizeCannotBeDetermined,    SyntaxError,            "array size cannot be determined from initializer")
dvander@25
    33
MSG(ArrayAssignmentTooBig,          SyntaxError,            "destination array is too small")
dvander@25
    34
MSG(CannotDeclareStringCell,        SyntaxError,            "cannot declare a String cell")
dvander@60
    35
MSG(CantOpenFile,                   SyntaxError,            "cannot open file")
dvander@60
    36
MSG(ErrorSeekingFile,               SyntaxError,            "error seeking file")
dvander@60
    37
MSG(ErrorReadingFile,               SyntaxError,            "error reading file")
dvander@63
    38
MSG(ExpectedGlobal,                 SyntaxError,            "expected global variable or function")
dvander@63
    39
MSG(ForwardNotImplemented,          SyntaxError,            "forward '%s' not implemented")
dvander@66
    40
MSG(ForwardDeclareMismatches,       SyntaxError,            "declaration does not match original forward signature")
dvander@245
    41
MSG(ArrayCantBeReference,           TypeError,              "this type cannot be used with a reference")
dvander@67
    42
MSG(ArraySizeMustBeConstant,        SyntaxError,            "array size must be a constant integer")
dvander@68
    43
MSG(MultiArrayInNative,             SyntaxError,            "multidimensional arrays cannot be passed to natives")
dvander@68
    44
MSG(InvalidVarArgs,                 SyntaxError,            "varargs cannot be const or ref")
dvander@68
    45
MSG(VarArgsOutsideNative,           SyntaxError,            "variadic arguments can only be specified on natives")
dvander@69
    46
MSG(ArrayTooBig,                    TypeError,              "array size is too large")
dvander@69
    47
MSG(IntegerDivideByZero,            TypeError,              "integer divide by zero")
dvander@69
    48
MSG(ArrayIndexOutOfBounds,          TypeError,              "array index %d is out of bounds [0, %d)")
dvander@69
    49
MSG(NativeNotBound,                 TypeError,              "attempted to call unbound native \"%s\"")
dvander@69
    50
MSG(AllocationOverflow,             SystemError,            "allocation request overflowed")
dvander@71
    51
MSG(TooMuchRecursion,               SystemError,            "stack overflow: too much recursion")
dvander@232
    52
MSG(MissingReturnValue,             SyntaxError,            "function must return a value")
dvander@71
    53
MSG(NotAllPathsReturnValue,         SyntaxError,            "not all paths through function return a value")
dvander@232
    54
MSG(UsedVoidReturn,                 SyntaxError,            "value returned, but function is void")
dvander@237
    55
MSG(CannotDeclareVoid,              TypeError,              "cannot declare void variables")
dvander@84
    56
MSG(FunctionDoesNotReturnValue,     SyntaxError,            "cannot use the result of a function with no return value")
dvander@129
    57
MSG(IdentifierNotFound,             SyntaxError,            "identifier '%s' could not be found")
dvander@148
    58
MSG(TypeMismatchDuringInvoke,       TypeError,              "incoming type '%s' does not match signature type '%s'")
dvander@129
    59
MSG(CannotInvokeReturnType,         SyntaxError,            "cannot invoke function with return type '%s'")
dvander@145
    60
MSG(IdentifierIsNotAType,           SyntaxError,            "identifier '%s' cannot be used as a type")
dvander@148
    61
MSG(TypeMismatch,                   TypeError,              "type mismatch (expected '%s', got '%s')")
dvander@148
    62
MSG(PropertyNotFound,               TypeError,              "property '%s' not found on type '%s'")
dvander@168
    63
MSG(MustBeConstant,                 SyntaxError,            "default value must be a constant")
dvander@172
    64
MSG(DefaultMustBeLastCase,          SyntaxError,            "the \"default\" case must be the last case in a switch statement")
dvander@172
    65
MSG(OneDefaultPerSwitch,            SyntaxError,            "only one default case is allowed per switch")
dvander@172
    66
MSG(SingleStatementPerCase,         SyntaxError,            "only one statement is allowed per case")
dvander@172
    67
MSG(CaseMustBeConstant,             SyntaxError,            "case expression must be a constant")
dvander@172
    68
MSG(CaseHasSameValue,               SyntaxError,            "case value appears twice in the same switch")
dvander@172
    69
MSG(CaseMustBeInteger,              SyntaxError,            "switch may only operate on integer values")
mibusby@180
    70
MSG(StructCantBeEmpty,              SyntaxError,            "struct cannot be declared without any fields")
dvander@187
    71
MSG(CannotInitializeEvalArray,      SyntaxError,            "cannot mix dynamic array sizes and initializers")
dvander@187
    72
MSG(ExpectedStringLiteral,          SyntaxError,            "expected string literal")
dvander@187
    73
MSG(UnexpectedArrayLiteral,         SyntaxError,            "unexpected array literal")
dvander@187
    74
MSG(InvalidDimensionSize,           TypeError,              "invalid size %d for dimension %d")
dvander@188
    75
MSG(CannotComputeIndexRef,          SyntaxError,            "cannot use an array index as a reference")
dvander@190
    76
MSG(BadDynamicInitializer,          SyntaxError,            "dynamic length specified, but preceding array is empty")
dvander@194
    77
MSG(SizeofNeedsArray,               TypeError,              "sizeof requires an array")
dvander@195
    78
MSG(ImportsMustBeFirst,             SyntaxError,            "import statements must come before other statements")
dvander@195
    79
MSG(ImportedNameAlreadyBound,       TypeError,              "imported name has already been bound")
dvander@233
    80
MSG(CannotResolveImport,            TypeError,              "cannot resolve import %s")
dvander@241
    81
MSG(InvalidCoercion,                TypeError,              "cannot coerce type '%s' to type '%s'")
dvander@241
    82
MSG(CannotConstReference,           TypeError,              "constant outparams are not allowed")
dvander@241
    83
MSG(CannotModifyConst,              TypeError,              "cannot change constant value or structure")
dvander@245
    84
MSG(InvalidConstOnFormal,           TypeError,              "const parameters must be arrays or structs")
dvander@245
    85
MSG(InvalidUncheckedCastFrom,       TypeError,              "cannot perform an unchecked cast on type '%s'")
dvander@246
    86
MSG(InvalidUncheckedCastTo,         TypeError,              "cannot perform an unchecked cast to type '%s'")
dvander@251
    87
MSG(InvalidUnaryType,               TypeError,              "operator %s not defined for type '%s'")
dvander@256
    88
MSG(CannotImportPath,               SyntaxError,            "could not find module or import '%s'")
dvander@256
    89
MSG(DuplicateImport,                SyntaxError,            "duplicate import name '%s'")
dvander@256
    90
MSG(InvalidFieldExpression,			TypeError,				"type '%s' does not have any fields")
dvander@256
    91
MSG(PackageDoesNotHaveMember,		TypeError,				"package does not have member '%s' (check imports)")
dvander@256
    92
MSG(ImportWasNeverImported,         TypeError,              "'%s' was never imported")
dvander@258
    93
MSG(FieldNotFound,                  TypeError,              "field '%s' not found")
dvander@259
    94
MSG(BadImportFrom,					TypeError,              "expected '*' or <name>")
dvander@259
    95
MSG(NotFoundInImportable,           TypeError,              "name '%s' was not found in import '%s'")