1442.1. 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>.
1442.1.1. Methods
1442.1.1.1. __construct
-
__construct()
Create a new plural parser.
1442.1.1.2. populateSymbolTable
-
populateSymbolTable()
Populate the symbol table.
1442.1.1.3. Symbol
-
Symbol()
1442.1.1.4. Symbol
-
Symbol()
1442.1.1.5. Symbol
-
Symbol()
1442.1.1.6. Symbol
-
Symbol()
1442.1.1.7. registerLeftInfixSymbol
-
registerLeftInfixSymbol()
Register a left infix symbol.
Parameters: |
|
Return type: | void
|
1442.1.1.8. Symbol
-
Symbol()
1442.1.1.9. registerRightInfixSymbol
-
registerRightInfixSymbol()
Register a right infix symbol.
Parameters: |
|
Return type: | void
|
1442.1.1.10. Symbol
-
Symbol()
1442.1.1.11. registerPrefixSymbol
-
registerPrefixSymbol()
Register a prefix symbol.
Parameters: |
|
Return type: | void
|
1442.1.1.12. Symbol
-
Symbol()
1442.1.1.13. registerSymbol
-
registerSymbol()
Register a symbol.
Parameters: |
|
Return type: | Symbol
|
1442.1.1.14. getSymbol
-
getSymbol()
Get a new symbol.
1442.1.1.15. parse
-
parse()
Parse a string.
Parameters: | string – |
Return type: | array |
1442.1.1.16. expression
-
expression()
Parse an expression.
Parameters: | integer – |
Return type: | Symbol |
1442.1.1.17. advance
-
advance()
Advance the current token and optionally check the old token id.
Parameters: | string – |
Return type: | void |
Throws : | ExceptionParseException |
1442.1.1.18. getNextToken
-
getNextToken()
Get the next token.
Return type: | array |
Throws : | ExceptionParseException |