Skip to main content

rivescript_core/
lib.rs

1//! # RiveScript Core
2//!
3//! This crate provides common types and traits that are useful for RiveScript
4//! and third-party plugin modules. For example, the [macros::LanguageLoader] for
5//! foreign programming-language Object Macro Handlers lives here so that the
6//! RiveScript crate and external implementations can both reference it.
7
8pub mod ast;
9pub mod macros;
10pub mod parser;
11pub mod regex;
12pub mod sessions;
13
14pub const DEFAULT_TOPIC: &str = "random";
15pub const BEGIN_TOPIC: &str = "__begin__";
16pub const ERR_NO_MATCH: &str = "ERR: No Reply Matched";
17pub const ERR_NO_REPLY: &str = "[ERR: No Reply]";
18pub const BEGIN_REQUEST: &str = "request";
19pub const TAG_OK: &str = "{ok}";
20pub const UNDEFINED: &str = "undefined";
21pub const MAX_STARS: usize = 9;
22pub const MAX_HISTORY: usize = 9;
23pub const DEFAULT_DEPTH: usize = 50;