use regex::Regex;
pub(crate) fn macro_start(custom : Option<char>) -> char {
if let Some(start) = custom{
start
} else {
MACRO_START_CHAR
}
}
pub(crate) fn comment_start(custom: Option<char>) -> char {
if let Some(start) = custom{
start
} else {
COMMENT_CHAR
}
}
const MACRO_START_CHAR: char = '$';
const COMMENT_CHAR : char = '%';
pub const ESCAPE_CHAR: char ='\\';
pub const LIT_CHAR: char = '*';
pub const MAIN_CALLER: &str = "@MAIN@";
lazy_static::lazy_static! {
pub static ref UNALLOWED_CHARS: Regex = Regex::new(r#"[a-zA-Z1-9\\_\*\^\|\+\(\)=,]"#).expect("Failed to create regex expression");
}
#[cfg(feature = "debug")]
pub const DIFF_SOURCE_FILE : &str = "diff.src";
#[cfg(feature = "debug")]
pub const DIFF_OUT_FILE : &str = "diff.out";
#[cfg(windows)]
pub const LINE_ENDING: &'static str = "\r\n";
#[cfg(not(windows))]
pub const LINE_ENDING: &'static str = "\n";
#[cfg(feature = "evalexpr")]
pub const ESCAPED_COMMA : &str = "@COMMA@";
#[cfg(feature = "debug")]
pub const RDB_HELP: &'static str = include_str!("debug_help_message.txt");