Skip to content

Enum TokenType

Definition

Namespace: StardewUI.Framework.Grammar
Assembly: StardewUI.dll

Types of tokens allowed in StarML.

public enum TokenType

Inheritance
ObjectValueTypeEnum ⇦ TokenType

Fields

Name Value Description
Unknown 0 Unknown token; used when a lexer has not been initialized, or has reached the end of its content.
OpeningTagStart 1 Start of an opening tag, i.e. the < character without a subsequent /.
ClosingTagStart 2 Start of a closing tag, i.e. the </ character sequence.
TagEnd 3 End of a regular opening or closing tag, i.e. the > character.
SelfClosingTagEnd 4 End of a self-closing tag, i.e. the /> character sequence.
Name 5 A valid name, i.e. of an element (tag) or attribute.
NameSeparator 6 The dot (.) character used to separate components of a name.
AttributeModifier 7 Modifier token designating the type of an attribute; the * character (structural) or + (behavior).
Literal 8 A string of literal text, as found within a quoted or bound attribute.
Assignment 9 The = character, as used in an attribute syntax such as attr="value".
Negation 10 The ! character, sometimes used to negate the value of an attribute, e.g. for conditional attributes.
Quote 11 Double quote character (") used to start or terminate a Literal string.
BindingStart 12 A pair of opening braces ({{), used to start a binding expression for an attribute value.
BindingEnd 13 A pair of closing braces (}}), used to end a binding expression for an attribute value.
BindingModifier 14 An explicit binding modifier; one of @ (asset), # (translation), & (template), < (input only), > (output only) or <> (two-way).
ContextParent 15 A caret (^) used in a binding expression, indicating a walk up to the parent context.
ContextAncestor 16 A tilde (~) used in a binding expression, indicating traversal up to a parent with a named type.
Pipe 17 The pipe (|) character, which is used to start and end event bindings.
ArgumentListStart 18 The left parenthesis (() character, used to start an argument list.
ArgumentListEnd 19 The right parenthesis (() character, used to end an argument list.
ArgumentPrefix 20 Prefix character for an argument, e.g. $ to refer to an event property.
ArgumentSeparator 21 The comma (,) character, used to separator arguments in an argument list.
CommentStart 22 Beginning of a comment block (<!--).
CommentEnd 23 End of a comment block (-->).