icu_plurals/provider/rules/reference/
mod.rs

1// This file is part of ICU4X. For terms of use, please see the file
2// called LICENSE at the top level of the ICU4X source tree
3// (online at: https://github.com/unicode-org/icu4x/blob/main/LICENSE ).
4
5//! Reference version of the Plural Rules parser, AST and serializer.
6//!
7//! <div class="stab unstable">
8//! 🚧 This code is considered unstable; it may change at any time, in breaking or non-breaking ways,
9//! including in SemVer minor releases. In particular, the `DataProvider` implementations are only
10//! guaranteed to match with this version's `*_unstable` providers. Use with caution.
11//! </div>
12pub mod ast;
13#[cfg(feature = "serde")]
14pub(crate) mod lexer;
15#[cfg(feature = "serde")]
16pub(crate) mod parser;
17#[cfg(feature = "datagen")]
18pub(crate) mod resolver;
19pub(crate) mod serializer;
20
21#[cfg(feature = "datagen")]
22pub use lexer::Lexer;
23#[cfg(feature = "datagen")]
24pub use parser::{parse, parse_condition};
25#[cfg(feature = "datagen")]
26pub use resolver::test_condition;
27pub use serializer::serialize;