1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//! Library for manipulations on context-free grammars. Most transformations are abstracted over
//! grammar representations.

#![recursion_limit = "512"]
#![deny(
    missing_copy_implementations,
    trivial_casts,
    trivial_numeric_casts,
    unused_import_braces,
    unused_qualifications
)]
#![cfg_attr(test, deny(warnings))]
#![cfg_attr(test, allow(missing_docs))]
#![cfg_attr(
    feature = "nightly",
    feature(collections, collections_range, core, nonzero,)
)]

extern crate bit_matrix;
extern crate bit_vec;
extern crate optional;
#[cfg(feature = "serde")]
extern crate serde;
#[macro_use]
#[cfg(feature = "serde_derive")]
extern crate serde_derive;
#[cfg(feature = "num")]
extern crate num;
#[cfg(feature = "rand")]
extern crate rand;

#[cfg(feature = "nightly")]
extern crate collections;
#[cfg(feature = "nightly")]
extern crate core;

mod analysis;
pub mod binarized;
pub mod classification;
pub mod earley;
pub mod generation;
mod grammar;
pub mod history;
pub mod precedence;
pub mod prediction;
pub mod remap;
pub mod rule;
pub mod rule_container;
pub mod sequence;
pub mod symbol;

pub mod prelude {
    pub use crate::binarized::BinarizedCfg;
    pub use crate::grammar::Cfg;
    pub use crate::history::{HistoryId, HistoryNode};
    pub use crate::rule::GrammarRule;
    pub use crate::rule_container::{RuleContainer, RuleContainerMut, RuleContainerRef};
    pub use crate::symbol::{Symbol, SymbolSource};
}