Skip to main content

Syntax errors

Syntax errors are faults in the source code, such as misspellings and punctuation, wrong labeling, and so forth, that result in the interpreter producing an error message. We can find these expressions in Topaz as explained below:

CodeMessageAdditional details
TS000Unknown.Unknown and unexpected error.
TS001Cannot open or read file "%s".
TS002Illegal character "%s".
TS003Illegal qualifier "%s". 
TS004Illegal expression.
TS005"%s" expected but "%s" found.
TS006"%s" is not a valid number.
TS007Incorrect use of numeric separator.
TS008Illegal assignment.
TS009Invalid escape sequence in enhanced string: \%s.
TS010Invalid Unicode code point: U+%06s.
TS011Invalid inline expression.
TS012Invalid type declaration.
TS013Directive "%s" is already set.
TS014Duplicate identifier "%s".
TS015Identifier "%s" not found.
TS016An abstract function cannot have any implementation.
TS017The names of namespace parts, functions, parameters, modules, alises and exports cannot be names of built-in elements.
TS018"%s" instruction cannot be placed outside the loop.