dvander@25: MSG(UnterminatedComment, SyntaxError, "unterminated comment") dvander@25: MSG(UnexpectedCharacter, SyntaxError, "unexpected character '%c' (code %02X)") dvander@25: MSG(UnterminatedString, SyntaxError, "unterminated string") dvander@25: MSG(UnknownEscapeCode, SyntaxError, "unknown escape code '%c'") dvander@25: MSG(ExpectedDigitForFloat, SyntaxError, "expected digit in float literal, got '%c'") dvander@25: MSG(WrongToken, SyntaxError, "expected token '%s', got '%s'") dvander@25: MSG(ExpectedExpression, SyntaxError, "expected expression, got '%s'") dvander@25: MSG(RedeclaredName, SyntaxError, "name '%s' was redeclared (previous at line %d, col %d)") dvander@25: MSG(ExpectedLValue, SyntaxError, "impossible assignment, expected l-value") dvander@25: MSG(MaximumArrayDepth, SyntaxError, "maximum array dimension depth exceeded") dvander@25: MSG(ArrayInitializerDepth, SyntaxError, "array declaration and initializer have different dimension counts") dvander@25: MSG(BadArraySize, SyntaxError, "array size must be positive") dvander@25: MSG(ArraySizeTooBig, SyntaxError, "array size is too big") dvander@25: MSG(EnumFieldNotConstant, SyntaxError, "enum fields must be constant integers") dvander@25: MSG(BreakOutsideLoop, SyntaxError, "break occurs outside any loop") dvander@25: MSG(ContinueOutsideLoop, SyntaxError, "continue occurs outside any loop") dvander@25: MSG(InvalidEnumName, SyntaxError, "invalid enumeration name") dvander@25: MSG(IndexMustBeInteger, SyntaxError, "array index must be integer") dvander@25: MSG(IndexBaseMustBeArray, SyntaxError, "cannot index into non-array") dvander@25: MSG(ArrayIsNotBoolean, SyntaxError, "cannot convert an array to boolean") dvander@25: MSG(CalleeNotFunction, SyntaxError, "callee is not a function") dvander@25: MSG(ArgumentCountMismatch, SyntaxError, "argument counts do not match") dvander@25: MSG(CannotAssignArrayToScalar, SyntaxError, "cannot coerce an array to a scalar") dvander@25: MSG(UnsupportedType, SyntaxError, "unsupported type") dvander@25: MSG(TagMismatch, SyntaxError, "tag mismatch (expected '%s', got '%s')") dvander@25: MSG(ArrayDimensionsMismatch, SyntaxError, "number of array dimensions does not match") dvander@25: MSG(ExpectedArray, SyntaxError, "expected array") dvander@25: MSG(ArrayDimensionSizeMismatch, SyntaxError, "array dimension sizes do not match (level %d)") dvander@25: MSG(ArrayDimensionNotInteger, SyntaxError, "array dimension size must be an integer expression") dvander@25: MSG(ArrayNotSupported, SyntaxError, "array declaration not yet supported") dvander@25: MSG(ArrayInitializerUnknown, SyntaxError, "array initialized size is not known") dvander@25: MSG(DynamicArrayHasInitializer, SyntaxError, "dynamic arrays cannot have initializers") dvander@25: MSG(ArraySizeNotSpecified, SyntaxError, "array size was not specified") dvander@25: MSG(ArraySizeCannotBeDetermined, SyntaxError, "array size cannot be determined from initializer") dvander@25: MSG(ArrayAssignmentTooBig, SyntaxError, "destination array is too small") dvander@25: MSG(CannotDeclareStringCell, SyntaxError, "cannot declare a String cell") dvander@25: MSG(BinaryTypeError, SyntaxError, "operator '%s' does not support types '%s' and '%s'") dvander@25: MSG(ArraySizeNotKnown, SyntaxError, "array size is not known") dvander@60: MSG(UnaryTypeError, SyntaxError, "operator '%s' does not support type '%s'") dvander@60: MSG(CantOpenFile, SyntaxError, "cannot open file") dvander@60: MSG(ErrorSeekingFile, SyntaxError, "error seeking file") dvander@60: MSG(ErrorReadingFile, SyntaxError, "error reading file") dvander@63: MSG(ExpectedGlobal, SyntaxError, "expected global variable or function") dvander@63: MSG(ForwardNotImplemented, SyntaxError, "forward '%s' not implemented") dvander@66: MSG(ForwardDeclareMismatches, SyntaxError, "declaration does not match original forward signature") dvander@66: MSG(ArrayCantBeReference, SyntaxError, "a parameter cannot be both an array and a reference") dvander@67: MSG(ArraySizeMustBeConstant, SyntaxError, "array size must be a constant integer") dvander@68: MSG(ReferenceIsConstant, SyntaxError, "cannot assign to a constant lvalue") dvander@68: MSG(MultiArrayInNative, SyntaxError, "multidimensional arrays cannot be passed to natives") dvander@68: MSG(InvalidVarArgs, SyntaxError, "varargs cannot be const or ref") dvander@68: MSG(VarArgsOutsideNative, SyntaxError, "variadic arguments can only be specified on natives") dvander@69: MSG(ArrayTooBig, TypeError, "array size is too large") dvander@69: MSG(IntegerDivideByZero, TypeError, "integer divide by zero") dvander@69: MSG(ArrayIndexOutOfBounds, TypeError, "array index %d is out of bounds [0, %d)") dvander@69: MSG(NativeNotBound, TypeError, "attempted to call unbound native \"%s\"") dvander@69: MSG(AllocationOverflow, SystemError, "allocation request overflowed") dvander@71: MSG(TooMuchRecursion, SystemError, "stack overflow: too much recursion") dvander@71: MSG(MissingReturnValue, SyntaxError, "tagged function must return a value") dvander@71: MSG(NotAllPathsReturnValue, SyntaxError, "not all paths through function return a value") dvander@71: MSG(UsedVoidReturn, SyntaxError, "return value expected, but function does not return a value") dvander@84: MSG(FunctionDoesNotReturnValue, SyntaxError, "cannot use the result of a function with no return value") dvander@84: MSG(IdentifierNotFound, SyntaxError, "identifier '%s' could not be found")