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
//! 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;
extern crate optional;
extern crate serde;
#[macro_use]
extern crate serde_derive;

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

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

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