Add support for array reference semantics.
1 MSG(UnterminatedComment, SyntaxError, "unterminated comment")
2 MSG(UnexpectedCharacter, SyntaxError, "unexpected character '%c' (code %02X)")
3 MSG(UnterminatedString, SyntaxError, "unterminated string")
4 MSG(UnknownEscapeCode, SyntaxError, "unknown escape code '%c'")
5 MSG(ExpectedDigitForFloat, SyntaxError, "expected digit in float literal, got '%c'")
6 MSG(WrongToken, SyntaxError, "expected token '%s', got '%s'")
7 MSG(ExpectedExpression, SyntaxError, "expected expression, got '%s'")
8 MSG(RedeclaredName, SyntaxError, "name '%s' was redeclared (previous at line %d, col %d)")
9 MSG(ExpectedLValue, SyntaxError, "impossible assignment, expected l-value")
10 MSG(MaximumArrayDepth, SyntaxError, "maximum array dimension depth exceeded")
11 MSG(ArrayInitializerDepth, SyntaxError, "array declaration and initializer have different dimension counts")
12 MSG(BadArraySize, SyntaxError, "array size must be positive")
13 MSG(ArraySizeTooBig, SyntaxError, "array size is too big")
14 MSG(EnumFieldNotConstant, SyntaxError, "enum fields must be constant integers")
15 MSG(BreakOutsideLoop, SyntaxError, "break occurs outside any loop")
16 MSG(ContinueOutsideLoop, SyntaxError, "continue occurs outside any loop")
17 MSG(InvalidEnumName, SyntaxError, "invalid enumeration name")
18 MSG(IndexMustBeInteger, SyntaxError, "array index must be integer")
19 MSG(IndexBaseMustBeArray, SyntaxError, "cannot index into non-array")
20 MSG(ArrayIsNotBoolean, SyntaxError, "cannot convert an array to boolean")
21 MSG(CalleeNotFunction, SyntaxError, "callee is not a function")
22 MSG(ArgumentCountMismatch, SyntaxError, "argument counts do not match")
23 MSG(CannotAssignArrayToScalar, SyntaxError, "cannot coerce an array to a scalar")
24 MSG(UnsupportedType, SyntaxError, "unsupported type")
25 MSG(ArrayDimensionsMismatch, SyntaxError, "number of array dimensions does not match")
26 MSG(ExpectedArray, SyntaxError, "expected array")
27 MSG(ArrayDimensionSizeMismatch, SyntaxError, "array dimension sizes do not match (level %d)")
28 MSG(ArrayDimensionNotInteger, SyntaxError, "array dimension size must be an integer expression")
29 MSG(ArrayNotSupported, SyntaxError, "array declaration not yet supported")
30 MSG(ArrayInitializerUnknown, SyntaxError, "array initialized size is not known")
31 MSG(DynamicArrayHasInitializer, SyntaxError, "dynamic arrays cannot have initializers")
32 MSG(ArraySizeNotSpecified, SyntaxError, "array size was not specified")
33 MSG(ArraySizeCannotBeDetermined, SyntaxError, "array size cannot be determined from initializer")
34 MSG(ArrayAssignmentTooBig, SyntaxError, "destination array is too small")
35 MSG(CannotDeclareStringCell, SyntaxError, "cannot declare a String cell")
36 MSG(BinaryTypeError, SyntaxError, "operator '%s' does not support types '%s' and '%s'")
37 MSG(UnaryTypeError, SyntaxError, "operator '%s' does not support type '%s'")
38 MSG(CantOpenFile, SyntaxError, "cannot open file")
39 MSG(ErrorSeekingFile, SyntaxError, "error seeking file")
40 MSG(ErrorReadingFile, SyntaxError, "error reading file")
41 MSG(ExpectedGlobal, SyntaxError, "expected global variable or function")
42 MSG(ForwardNotImplemented, SyntaxError, "forward '%s' not implemented")
43 MSG(ForwardDeclareMismatches, SyntaxError, "declaration does not match original forward signature")
44 MSG(ArrayCantBeReference, SyntaxError, "redundant reference qualifier on array parameter")
45 MSG(StructCantBeReference, SyntaxError, "redundant reference qualifier on struct parameter")
46 MSG(ArraySizeMustBeConstant, SyntaxError, "array size must be a constant integer")
47 MSG(ReferenceIsConstant, SyntaxError, "cannot assign to a constant lvalue")
48 MSG(MultiArrayInNative, SyntaxError, "multidimensional arrays cannot be passed to natives")
49 MSG(InvalidVarArgs, SyntaxError, "varargs cannot be const or ref")
50 MSG(VarArgsOutsideNative, SyntaxError, "variadic arguments can only be specified on natives")
51 MSG(ArrayTooBig, TypeError, "array size is too large")
52 MSG(IntegerDivideByZero, TypeError, "integer divide by zero")
53 MSG(ArrayIndexOutOfBounds, TypeError, "array index %d is out of bounds [0, %d)")
54 MSG(NativeNotBound, TypeError, "attempted to call unbound native \"%s\"")
55 MSG(AllocationOverflow, SystemError, "allocation request overflowed")
56 MSG(TooMuchRecursion, SystemError, "stack overflow: too much recursion")
57 MSG(MissingReturnValue, SyntaxError, "tagged function must return a value")
58 MSG(NotAllPathsReturnValue, SyntaxError, "not all paths through function return a value")
59 MSG(UsedVoidReturn, SyntaxError, "return value expected, but function does not return a value")
60 MSG(FunctionDoesNotReturnValue, SyntaxError, "cannot use the result of a function with no return value")
61 MSG(IdentifierNotFound, SyntaxError, "identifier '%s' could not be found")
62 MSG(TypeMismatchDuringInvoke, TypeError, "incoming type '%s' does not match signature type '%s'")
63 MSG(CannotInvokeReturnType, SyntaxError, "cannot invoke function with return type '%s'")
64 MSG(TypeNotFound, SyntaxError, "type '%s' could not be found")
65 MSG(IdentifierIsNotAType, SyntaxError, "identifier '%s' cannot be used as a type")
66 MSG(TypeMismatch, TypeError, "type mismatch (expected '%s', got '%s')")
67 MSG(PropertyNotFound, TypeError, "property '%s' not found on type '%s'")
68 MSG(MustBeConstant, SyntaxError, "default value must be a constant")
69 MSG(DefaultMustBeLastCase, SyntaxError, "the \"default\" case must be the last case in a switch statement")
70 MSG(OneDefaultPerSwitch, SyntaxError, "only one default case is allowed per switch")
71 MSG(SingleStatementPerCase, SyntaxError, "only one statement is allowed per case")
72 MSG(CaseMustBeConstant, SyntaxError, "case expression must be a constant")
73 MSG(CaseHasSameValue, SyntaxError, "case value appears twice in the same switch")
74 MSG(CaseMustBeInteger, SyntaxError, "switch may only operate on integer values")
75 MSG(StructCantBeEmpty, SyntaxError, "struct cannot be declared without any fields")