Tokens
The different tokens returned from TclParser js Object
TOKENS
only used internally:
- TOKEN_WORD_SEP
- TOKEN_EOL
- TOKEN_EOF
- TOKEN_ESC
- TOKEN_STR
"normal" tokens:
- TOKEN_CMD
- TOKEN_VAR
- TOKEN_EXPAND
- TOKEN_PAREN
- TOKEN_BRACE
- TOKEN_VAR_ARRAY
- TOKEN_VAR_ARRAY_NAME
- TOKEN_ARRAY_NAME
- TOKEN_VAR_COMPOSED
- TOKEN_BRACED_VAR
- TOKEN_QUOTED_STR
- TOKEN_COMMENT
only as leaf nodes in expression trees (besides "normal" tokens):
- TOKEN_DECIMAL
- TOKEN_INTEGER
- TOKEN_REAL
- TOKEN_BOOLEAN
- TOKEN_HEX
- TOKEN_OCTAL
expression operator tokens:
- TOKEN_MINUS
- TOKEN_PLUS
- TOKEN_MUL
- TOKEN_DIV
- TOKEN_MOD
- TOKEN_LT
- TOKEN_GT
- TOKEN_LE
- TOKEN_GE
- TOKEN_NE
- TOKEN_EQ
- TOKEN_NOT
- TOKEN_RP
- TOKEN_AND
- TOKEN_OR
- TOKEN_EXOR
- TOKEN_AND_IF
- TOKEN_OR_IF
- TOKEN_STR_EQ
- TOKEN_STR_NE
- TOKEN_STR_IN
- TOKEN_STR_NI
used for partially parsed statements:
- TOKEN_STR_PARAM
- TOKEN_STR_CMD
- TOKEN_NO_WORD_SEP
- TOKEN_EXPR
- TOKEN_STMTS
Tcl js Operator Precedence.
to be filled