![]() |
Paradox Game Engine
v1.0.0 beta06
|
Tokens are produced by scanner and fed to parser, optionally passing through Token filters in between. More...
Public Member Functions | |
Token (Terminal term, SourceLocation location, string text, object value) | |
Initializes a new instance of the Token class. More... | |
Token (Terminal term, SourceLocation location, int length, string source, object value) | |
Initializes a new instance of the Token class. More... | |
void | SetTerminal (Terminal terminal) |
Sets the terminal. More... | |
bool | IsSet (TokenFlags flag) |
Determines whether the specified flag is set. More... | |
bool | IsError () |
Determines whether this instance is error. More... | |
override string | ToString () |
Static Public Member Functions | |
static void | LinkMatchingBraces (Token openingBrace, Token closingBrace) |
Links the matching braces. More... | |
Public Attributes | |
readonly SourceLocation | Location |
Location in the source code. More... | |
object | Value |
Get the Value associated with this token. More... | |
TokenFlags | Flags |
Get the flags More... | |
TokenEditorInfo | EditorInfo |
Gets the Editor info. More... | |
short | ScannerState |
Scanner state after producing token More... | |
Properties | |
Terminal | Terminal [get, set] |
Gets the terminal. More... | |
KeyTerm | KeyTerm [get, set] |
Gets the Key terminal if any. More... | |
int | Length [get, set] |
Gets the length. More... | |
string | SourceCode [get, set] |
Gets the source code. More... | |
string | Text [get] |
Gets the text associated with this token. More... | |
string | ValueString [get] |
Gets the value as a string. More... | |
TokenCategory | Category [get] |
Gets the category. More... | |
Token | OtherBrace [get, set] |
Gets the matching opening/closing brace More... | |
Tokens are produced by scanner and fed to parser, optionally passing through Token filters in between.
Irony.Parsing.Token.Token | ( | Terminal | term, |
SourceLocation | location, | ||
string | text, | ||
object | value | ||
) |
Irony.Parsing.Token.Token | ( | Terminal | term, |
SourceLocation | location, | ||
int | length, | ||
string | source, | ||
object | value | ||
) |
bool Irony.Parsing.Token.IsError | ( | ) |
bool Irony.Parsing.Token.IsSet | ( | TokenFlags | flag | ) |
void Irony.Parsing.Token.SetTerminal | ( | Terminal | terminal | ) |
TokenEditorInfo Irony.Parsing.Token.EditorInfo |
TokenFlags Irony.Parsing.Token.Flags |
readonly SourceLocation Irony.Parsing.Token.Location |
Location in the source code.
Definition at line 116 of file Token.cs.
Referenced by Irony.Parsing.ParseTreeNode.ParseTreeNode(), Irony.Parsing.CodeOutlineFilter.ProcessToken(), and Irony.GrammarExplorer.EditorViewAdapter.TokensMatch().
short Irony.Parsing.Token.ScannerState |
object Irony.Parsing.Token.Value |
|
get |
|
getset |
|
getset |
Gets the length.
Definition at line 131 of file Token.cs.
Referenced by Irony.Parsing.ParseTreeNode.ParseTreeNode().
|
getset |
|
getset |
|
getset |
Gets the terminal.
Definition at line 121 of file Token.cs.
Referenced by SiliconStudio.Shaders.Grammar.GenericResolverHint.Match(), and Irony.GrammarExplorer.EditorViewAdapter.TokensMatch().
|
get |
Gets the text associated with this token.
Definition at line 145 of file Token.cs.
Referenced by SiliconStudio.Shaders.Grammar.IdentifierResolverHint.Match(), Irony.GrammarExplorer.EditorViewAdapter.TokensMatch(), and Irony.Parsing.Terminal.TokenToString().
|
get |
Gets the value as a string.
Definition at line 165 of file Token.cs.
Referenced by Irony.Parsing.Terminal.TokenToString().