Technical data
B
Target Language Compiler Error Messages
B-12
The %implements language does not match the language currently being
generated (
language
)
The language or languages specified in the %implements directive must exactly
match the
%language directive.
The %return statement can only appear within the body of a function
A %return statement can only be in the body of a function.
The :: operator can only be used within a function (Warning)
The :: operator (used to specify global scope within a function) should not be
used outside of a function body.
The == and != operators can only be used to compare values of the same
type
The == and != operator arguments must be the same type. You can use the
CAST() built-in function to change them into the same type.
The argument for %openfile must be a valid string
When opening an output file, the name of the file must be a valid string.
The argument for %with must be a valid scope
The argument to %with must be a valid scope identifier. For example:
%assign x = 1
%with x
…
%endwith
In this code, the %with statement argument is a number and produces this
error message.
The argument for an [] operation must be a repeated scope symbol, a
vector, or a matrix
When using the [] operator to index, the expression on the left of the brackets
must be a vector, matrix, string, numeric constant, or a repeated scope