Difference between revisions of "Sys TokenType"

(Created page with "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 SyntaxColor...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
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, variables, identifiers. Here is what these mean:
+
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 - comments using /*...*/ or {...}
+
comments - Analytica comments, of the forms /* comment text */ or { comment text }  
text literals - quoted text '...' or "..."
+
 
keywords - reserved words like table, if, then, do, local, etc.
+
text literals - strings enclosed in quotes, of the forms '[text ' or " text "  
variables - these are identifiers that are unresolved, that are not declared variables or identifiers of nodes
+
 
identifiers - identifiers of nodes or declared variables
+
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.

Latest revision as of 19:21, 3 March 2020

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.

Comments


You are not allowed to post comments.