Property | Type | Description | |
---|---|---|---|
CurrentToken | |||
Input | string | ||
Position | int | ||
TokenDefinitions | TokenDefinition>.Dictionary |
Method | Description | |
---|---|---|
AstTokenParser ( ) : System |
Initializes a new instance of the AstTokenParser class with default token definitions.
|
|
Parse ( string input ) : |
Parses the input string that contains a plural rule formula and generates an abstract syntax tree.
|
Method | Description | |
---|---|---|
AdvancePosition ( ) : void | ||
AdvancePosition ( TokenType expectedTokenType ) : void | ||
GetDefinition ( TokenType tokenType ) : |
||
GetNextToken ( ) : |
||
ParseNextExpression ( int rightBindingPower ) : |
||
RegisterLeftInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
RegisterPrefixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
RegisterRightInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
RegisterTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
protected AdvancePosition ( TokenType expectedTokenType ) : void | ||
expectedTokenType | TokenType | |
return | void |
protected GetDefinition ( TokenType tokenType ) : |
||
tokenType | TokenType | |
return |
protected ParseNextExpression ( int rightBindingPower ) : |
||
rightBindingPower | int | |
return |
protected RegisterLeftInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
return |
protected RegisterPrefixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
return |
protected RegisterRightInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
return |
protected RegisterTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
return |