Crate make_pluralrules[][src]

make_pluralrules generates a Rust code representation of CLDR plural rules in compliance with Unicode.

Representations of plural rules are generated from Unicode's plural rules and uses the intl_pluralrules_parser AST to build the representation.

The ouput is a Rust file, specified by the user in the comand

cargo run <./path/to/cldr.json> <./path/to/output.rs>

where <output_file> is the location of the desired Rust file.

Functions

generate_rs