Cldr v0.8.3 Cldr.Number.PluralRule.Transformer View Source
Tranformations on the parse tree returned from parsing plural rules.
The transformations is primarily to convert the parse tree into an AST
representing a cond
statement that implements the rule.
Link to this section Summary
Functions
Converts a map representing a set of plural rules and converts it
to an cond
statement
Link to this section Functions
Converts a map representing a set of plural rules and converts it
to an cond
statement.
rules
is a map of the locale specific branch of the plurals.json
file from CLDR. It is then tokenized, parsed and the resulting ast
converted to a cond
statement.