rustemo 0.9.1

A LR/GLR parser generator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use yansi::{Color::*, Condition, Style};

#[cfg(feature = "tty")]
static COLORS: Condition = Condition::from(|| Condition::stderr_is_tty() && Condition::no_color());

#[cfg(not(feature = "tty"))]
static COLORS: Condition = Condition::NEVER;

pub static LOG: Style = Green.whenever(COLORS);
pub static LOG_BOLD: Style = Green.bold().whenever(COLORS);
pub static WARN: Style = Red.whenever(COLORS);
pub static WARN_BOLD: Style = Red.bold().whenever(COLORS);