C# 클래스 NGettext.Plural.Ast.AstTokenParser

Plural rule formula parser. Ported from the I18n component from Zend Framework (https://github.com/zendframework/zf2).
파일 보기 프로젝트 열기: neris/NGettext 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
CurrentToken Token
Input string
Position int
TokenDefinitions TokenDefinition>.Dictionary

공개 메소드들

메소드 설명
AstTokenParser ( ) : System

Initializes a new instance of the AstTokenParser class with default token definitions.

Parse ( string input ) : Token

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 ) : TokenDefinition
GetNextToken ( ) : Token
ParseNextExpression ( int rightBindingPower ) : Token
RegisterLeftInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
RegisterPrefixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
RegisterRightInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
RegisterTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition

메소드 상세

AdvancePosition() 보호된 메소드

protected AdvancePosition ( ) : void
리턴 void

AdvancePosition() 보호된 메소드

protected AdvancePosition ( TokenType expectedTokenType ) : void
expectedTokenType TokenType
리턴 void

AstTokenParser() 공개 메소드

Initializes a new instance of the AstTokenParser class with default token definitions.
public AstTokenParser ( ) : System
리턴 System

GetDefinition() 보호된 메소드

protected GetDefinition ( TokenType tokenType ) : TokenDefinition
tokenType TokenType
리턴 TokenDefinition

GetNextToken() 보호된 메소드

protected GetNextToken ( ) : Token
리턴 Token

Parse() 공개 메소드

Parses the input string that contains a plural rule formula and generates an abstract syntax tree.
public Parse ( string input ) : Token
input string Input string.
리턴 Token

ParseNextExpression() 보호된 메소드

protected ParseNextExpression ( int rightBindingPower ) : Token
rightBindingPower int
리턴 Token

RegisterLeftInfixTokenDefinition() 보호된 메소드

protected RegisterLeftInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
tokenType TokenType
leftBindingPower int
리턴 TokenDefinition

RegisterPrefixTokenDefinition() 보호된 메소드

protected RegisterPrefixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
tokenType TokenType
leftBindingPower int
리턴 TokenDefinition

RegisterRightInfixTokenDefinition() 보호된 메소드

protected RegisterRightInfixTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
tokenType TokenType
leftBindingPower int
리턴 TokenDefinition

RegisterTokenDefinition() 보호된 메소드

protected RegisterTokenDefinition ( TokenType tokenType, int leftBindingPower ) : TokenDefinition
tokenType TokenType
leftBindingPower int
리턴 TokenDefinition

프로퍼티 상세

CurrentToken 보호되어 있는 프로퍼티

protected Token,NGettext.Plural.Ast CurrentToken
리턴 Token

Input 보호되어 있는 프로퍼티

protected string Input
리턴 string

Position 보호되어 있는 프로퍼티

protected int Position
리턴 int

TokenDefinitions 보호되어 있는 프로퍼티

protected Dictionary TokenDefinitions
리턴 TokenDefinition>.Dictionary