src/Messages.tbl
changeset 86 32ad0523b309
parent 84 eaa43f765cbd
child 129 86b368a4d80d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/Messages.tbl	Tue Jul 24 23:53:34 2012 -0700
     1.3 @@ -0,0 +1,62 @@
     1.4 +MSG(UnterminatedComment,            SyntaxError,            "unterminated comment")
     1.5 +MSG(UnexpectedCharacter,            SyntaxError,            "unexpected character '%c' (code %02X)")
     1.6 +MSG(UnterminatedString,             SyntaxError,            "unterminated string")
     1.7 +MSG(UnknownEscapeCode,              SyntaxError,            "unknown escape code '%c'")
     1.8 +MSG(ExpectedDigitForFloat,          SyntaxError,            "expected digit in float literal, got '%c'")
     1.9 +MSG(WrongToken,                     SyntaxError,            "expected token '%s', got '%s'")
    1.10 +MSG(ExpectedExpression,             SyntaxError,            "expected expression, got '%s'")
    1.11 +MSG(RedeclaredName,                 SyntaxError,            "name '%s' was redeclared (previous at line %d, col %d)")
    1.12 +MSG(ExpectedLValue,                 SyntaxError,            "impossible assignment, expected l-value")
    1.13 +MSG(MaximumArrayDepth,              SyntaxError,            "maximum array dimension depth exceeded")
    1.14 +MSG(ArrayInitializerDepth,          SyntaxError,            "array declaration and initializer have different dimension counts")
    1.15 +MSG(BadArraySize,                   SyntaxError,            "array size must be positive")
    1.16 +MSG(ArraySizeTooBig,                SyntaxError,            "array size is too big")
    1.17 +MSG(EnumFieldNotConstant,           SyntaxError,            "enum fields must be constant integers")
    1.18 +MSG(BreakOutsideLoop,               SyntaxError,            "break occurs outside any loop")
    1.19 +MSG(ContinueOutsideLoop,            SyntaxError,            "continue occurs outside any loop")
    1.20 +MSG(InvalidEnumName,                SyntaxError,            "invalid enumeration name")
    1.21 +MSG(IndexMustBeInteger,             SyntaxError,            "array index must be integer")
    1.22 +MSG(IndexBaseMustBeArray,           SyntaxError,            "cannot index into non-array")
    1.23 +MSG(ArrayIsNotBoolean,              SyntaxError,            "cannot convert an array to boolean")
    1.24 +MSG(CalleeNotFunction,              SyntaxError,            "callee is not a function")
    1.25 +MSG(ArgumentCountMismatch,          SyntaxError,            "argument counts do not match")
    1.26 +MSG(CannotAssignArrayToScalar,      SyntaxError,            "cannot coerce an array to a scalar")
    1.27 +MSG(UnsupportedType,                SyntaxError,            "unsupported type")
    1.28 +MSG(TagMismatch,                    SyntaxError,            "tag mismatch (expected '%s', got '%s')")
    1.29 +MSG(ArrayDimensionsMismatch,        SyntaxError,            "number of array dimensions does not match")
    1.30 +MSG(ExpectedArray,                  SyntaxError,            "expected array")
    1.31 +MSG(ArrayDimensionSizeMismatch,     SyntaxError,            "array dimension sizes do not match (level %d)")
    1.32 +MSG(ArrayDimensionNotInteger,       SyntaxError,            "array dimension size must be an integer expression")
    1.33 +MSG(ArrayNotSupported,              SyntaxError,            "array declaration not yet supported")
    1.34 +MSG(ArrayInitializerUnknown,        SyntaxError,            "array initialized size is not known")
    1.35 +MSG(DynamicArrayHasInitializer,     SyntaxError,            "dynamic arrays cannot have initializers")
    1.36 +MSG(ArraySizeNotSpecified,          SyntaxError,            "array size was not specified")
    1.37 +MSG(ArraySizeCannotBeDetermined,    SyntaxError,            "array size cannot be determined from initializer")
    1.38 +MSG(ArrayAssignmentTooBig,          SyntaxError,            "destination array is too small")
    1.39 +MSG(CannotDeclareStringCell,        SyntaxError,            "cannot declare a String cell")
    1.40 +MSG(BinaryTypeError,                SyntaxError,            "operator '%s' does not support types '%s' and '%s'")
    1.41 +MSG(ArraySizeNotKnown,              SyntaxError,            "array size is not known")
    1.42 +MSG(UnaryTypeError,                 SyntaxError,            "operator '%s' does not support type '%s'")
    1.43 +MSG(CantOpenFile,                   SyntaxError,            "cannot open file")
    1.44 +MSG(ErrorSeekingFile,               SyntaxError,            "error seeking file")
    1.45 +MSG(ErrorReadingFile,               SyntaxError,            "error reading file")
    1.46 +MSG(ExpectedGlobal,                 SyntaxError,            "expected global variable or function")
    1.47 +MSG(ForwardNotImplemented,          SyntaxError,            "forward '%s' not implemented")
    1.48 +MSG(ForwardDeclareMismatches,       SyntaxError,            "declaration does not match original forward signature")
    1.49 +MSG(ArrayCantBeReference,           SyntaxError,            "a parameter cannot be both an array and a reference")
    1.50 +MSG(ArraySizeMustBeConstant,        SyntaxError,            "array size must be a constant integer")
    1.51 +MSG(ReferenceIsConstant,            SyntaxError,            "cannot assign to a constant lvalue")
    1.52 +MSG(MultiArrayInNative,             SyntaxError,            "multidimensional arrays cannot be passed to natives")
    1.53 +MSG(InvalidVarArgs,                 SyntaxError,            "varargs cannot be const or ref")
    1.54 +MSG(VarArgsOutsideNative,           SyntaxError,            "variadic arguments can only be specified on natives")
    1.55 +MSG(ArrayTooBig,                    TypeError,              "array size is too large")
    1.56 +MSG(IntegerDivideByZero,            TypeError,              "integer divide by zero")
    1.57 +MSG(ArrayIndexOutOfBounds,          TypeError,              "array index %d is out of bounds [0, %d)")
    1.58 +MSG(NativeNotBound,                 TypeError,              "attempted to call unbound native \"%s\"")
    1.59 +MSG(AllocationOverflow,             SystemError,            "allocation request overflowed")
    1.60 +MSG(TooMuchRecursion,               SystemError,            "stack overflow: too much recursion")
    1.61 +MSG(MissingReturnValue,             SyntaxError,            "tagged function must return a value")
    1.62 +MSG(NotAllPathsReturnValue,         SyntaxError,            "not all paths through function return a value")
    1.63 +MSG(UsedVoidReturn,                 SyntaxError,            "return value expected, but function does not return a value")
    1.64 +MSG(FunctionDoesNotReturnValue,     SyntaxError,            "cannot use the result of a function with no return value")
    1.65 +MSG(IdentifierNotFound,             SyntaxError,            "identifier '%s' could not be found")
    1.66 \ No newline at end of file