Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
Irony.Parsing.MultiToken Class Reference

Some terminals may need to return a bunch of tokens in one call to TryMatch; MultiToken is a container for these tokens More...

Inheritance diagram for Irony.Parsing.MultiToken:
Irony.Parsing.Token

Public Member Functions

 MultiToken (Terminal term, SourceLocation location, TokenList childTokens)
 Initializes a new instance of the MultiToken class. More...
 
- Public Member Functions inherited from Irony.Parsing.Token
 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 ()
 

Public Attributes

TokenList ChildTokens
 List of child tokens More...
 
- Public Attributes inherited from Irony.Parsing.Token
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...
 

Additional Inherited Members

- Static Public Member Functions inherited from Irony.Parsing.Token
static void LinkMatchingBraces (Token openingBrace, Token closingBrace)
 Links the matching braces. More...
 
- Properties inherited from Irony.Parsing.Token
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...
 

Detailed Description

Some terminals may need to return a bunch of tokens in one call to TryMatch; MultiToken is a container for these tokens

Definition at line 262 of file Token.cs.

Constructor & Destructor Documentation

Irony.Parsing.MultiToken.MultiToken ( Terminal  term,
SourceLocation  location,
TokenList  childTokens 
)

Initializes a new instance of the MultiToken class.

Parameters
termThe term.
locationThe location.
childTokensThe child tokens.

Definition at line 275 of file Token.cs.

Member Data Documentation

TokenList Irony.Parsing.MultiToken.ChildTokens

List of child tokens

Definition at line 267 of file Token.cs.


The documentation for this class was generated from the following file: