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
//! Library for manipulations on context-free grammars. Most transformations are abstracted over
//! grammar representations.

#![deny(missing_docs,
        missing_copy_implementations,
        trivial_casts,
        trivial_numeric_casts,
        unused_import_braces,
        unused_qualifications)]

#![cfg_attr(test, deny(warnings))]

#![cfg_attr(feature = "nightly",
            feature(
                collections,
                collections_range,
                core,
                nonzero,
            ))]

extern crate bit_matrix;
extern crate bit_vec;

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

mod binarized;
pub mod cycles;
mod grammar;
pub mod history;
pub mod precedence;
pub mod prediction;
pub mod remap;
mod rhs_closure;
pub mod rule;
pub mod sequence;
pub mod symbol;
pub mod usefulness;

pub use binarized::BinarizedCfg;
pub use grammar::{Cfg, ContextFree, ContextFreeRef, ContextFreeMut};
pub use rule::GrammarRule;
pub use symbol::Symbol;