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
#![feature(slice_partition_dedup)]
#![feature(str_strip)]

#[macro_use]
extern crate log;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate lalrpop_util;

lalrpop_mod!(
    #[allow(clippy::all)]
    #[allow(unused_parens)]
    pub ascesis_parser
);

lalrpop_mod!(
    #[allow(clippy::all)]
    #[allow(unused_parens)]
    pub bnf_parser
);

mod error;
mod bnf;
pub mod grammar;
pub mod sentence;
mod axiom;
mod ces;
mod context;
mod content;
mod rex;
mod polynomial;
mod node;
mod lexer;

pub use aces::*;

pub use error::{AscesisError, AscesisErrorKind};
pub use axiom::Axiom;
pub use ces::{CesFile, CesFileBlock, CesName, ToCesName, ImmediateDef, CesImmediate, CesInstance};
pub use context::{
    PropBlock, PropSelector, PropValue, CapacitiesBlock, UnboundedBlock, WeightsBlock,
    InhibitorsBlock, HoldersBlock,
};
pub use content::AscesisFormat;
pub use rex::{Rex, ThinArrowRule, FatArrowRule};
pub use polynomial::Polynomial;
pub use node::{Node, ToNode, NodeList};
pub use lexer::{Lexer, Token, Literal, BinOp};