프로퍼티 | 타입 | 설명 | |
---|---|---|---|
CurrentToken | |||
Input | string | ||
Position | int | ||
TokenDefinitions | TokenDefinition>.Dictionary |
메소드 | 설명 | |
---|---|---|
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.
|
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | void |
protected GetDefinition ( TokenType tokenType ) : |
||
tokenType | TokenType | |
리턴 |
protected ParseNextExpression ( int rightBindingPower ) : |
||
rightBindingPower | int | |
리턴 |
protected RegisterLeftInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
리턴 |
protected RegisterPrefixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
리턴 |
protected RegisterRightInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
리턴 |
protected RegisterTokenDefinition ( TokenType tokenType, int leftBindingPower ) : |
||
tokenType | TokenType | |
leftBindingPower | int | |
리턴 |