Fully Qualified Name: | Zend\I18n\Translator\Plural\Parser |
Plural rule parser.
This plural rule parser is implemented after the article "Top Down Operator Precedence" described in http://javascript.crockford.com/tdop/tdop.html.
Name | Description | Defined By |
---|---|---|
__construct() | Create a new plural parser. | Parser |
advance() | Advance the current token and optionally check the old token id. | Parser |
expression() | Parse an expression. | Parser |
parse() | Parse a string. | Parser |
Create a new plural parser.
Returns:
Advance the current token and optionally check the old token id.
Parameter Name | Type | Description |
---|---|---|
$id | string |
Returns: void
Parse an expression.
Parameter Name | Type | Description |
---|---|---|
$rightBindingPower | int |
Returns: \Symbol
Parse a string.
Parameter Name | Type | Description |
---|---|---|
$string | string |
Returns: \Symbol