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:

Code Message Additional details
TS000 Unknown. Unknown and unexpected error.
TS001 Cannot open or read file "%s".
TS002 Illegal character "%s".
TS003 Illegal qualifier "%s".  
TS004 Illegal expression.
TS005 "%s" expected but "%s" found.
TS006 "%s" is not a valid number.
TS007 Incorrect use of numeric separator.
TS008 Illegal assignment.
TS009 Invalid escape sequence in enhanced string: \%s.
TS010 Invalid Unicode code point: U+%06s.
TS011 Invalid inline expression.
TS012 Invalid type declaration.
TS013 Directive "%s" is already set.
TS014 Duplicate identifier "%s".
TS015 Identifier "%s" not found.
TS016 An abstract function cannot have any implementation.
TS017 The 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.