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
#![feature(inclusive_range_syntax, inclusive_range)]
#![feature(type_ascription)]
#![feature(slice_patterns)]

#![allow(unreachable_patterns)]

/// (Macro imports need to appear at the crate root.)
#[macro_use] extern crate lazy_static;

#[macro_use]
extern crate log;

extern crate lalrpop_util;

/// Literate programming stuff goes in `mod lit`.
#[path="lit/src/mod.rs"]
mod lit;

use lit::{attrs};
pub use lit::{directions, find_text, find_path, format};
pub use lit::{grid, path};
pub use lit::{render, svg, text, test_data};

#[cfg(all(test, build = "release"))]
use lit::{env_logger};
use lit::{regex, treexml};

pub use lit::scene::{Scene, SceneOpts};

pub use lit::default_input::DEFAULT_INPUT as DEFAULT_RULES;

/// LalrPop grammar and its generated goes in `mod grammar`.
mod grammar;

pub use grammar::parse_rules;