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
//! TextWrite — the Fast Text scripting language.
//!
//! TextWrite is a small, hand-written, dependency-free scripting language with
//! Rust-style braces and English operators (`is`, `and`, `not`, `repeat 3 times`).
//! This crate contains the whole pipeline:
//!
//! * [`lexer`] turns source text into tokens,
//! * [`parser`] builds an [`ast`],
//! * [`interp`] walks the tree, and
//! * [`stdlib`] provides the built-in functions.
//!
//! ```
//! use textwrite::Interpreter;
//!
//! let mut tw = Interpreter::new();
//! let value = tw.eval_expression("2 + 3 * 4").unwrap();
//! assert_eq!(value.to_display(), "14");
//! ```
pub use ;
pub use ;
pub use Interpreter;
pub use Value;
/// The TextWrite language version.
pub const VERSION: &str = env!;