Sys TokenType

This system variable is one index for the system variable SyntaxColors (see Sys SyntaxColors). This indexes the token types values of colors in the rows of the SyntaxColors table. This cannot be changed. The members of this index are comments, text literals, keywords, undefined, user object identifiers, system object identifiers, local variables. Here is what these mean:

comments - Analytica comments, of the forms /* comment text */ or { comment text }

text literals - strings enclosed in quotes, of the forms '[text ' or " text "

keywords - reserved words in Analytica such as if, then, else, do, local, etc.

undefined - these are words that are not keywords and not declared local variables and not identifiers of any Analytica nodes or functions; by default, these are lighter colored than identifiers and help you spot typos from failing to type resolved names correctly or else spot intended names that you typed before having actually defined them. These will always result in errors in parsing.

user object identifiers - these are resolved identifiers of user defined Analytica nodes or functions

system object identifiers - these are identifiers of built in system variables or functions, e.g., time.

local variables - these are local variables declared by using keywords such as var, local, etc.


You are not allowed to post comments.