rubylang 0.1.2

Ruby as a fusevm frontend: a lexer/parser and compiler to fusevm::Chunk on a RubyHost object heap, with no bespoke VM or JIT — the first compiled standalone Ruby runtime
Documentation
//! The REPL banner (shown only for the interactive `ruby --repl`, never for
//! script execution).

use nu_ansi_term::Color;

/// ANSI-Shadow wordmark, matching the house cyberpunk style.
pub const WORDMARK: &str = r#"
██████╗ ██╗   ██╗██████╗ ██╗   ██╗██████╗ ███████╗
██╔══██╗██║   ██║██╔══██╗╚██╗ ██╔╝██╔══██╗██╔════╝
██████╔╝██║   ██║██████╔╝ ╚████╔╝ ██████╔╝███████╗
██╔══██╗██║   ██║██╔══██╗  ╚██╔╝  ██╔══██╗╚════██║
██║  ██║╚██████╔╝██████╔╝   ██║   ██║  ██║███████║
╚═╝  ╚═╝ ╚═════╝ ╚═════╝    ╚═╝   ╚═╝  ╚═╝╚══════╝
"#;

/// Print the banner + a one-line subtitle for the interactive REPL.
pub fn print_banner() {
    let v = env!("CARGO_PKG_VERSION");
    println!("{}", Color::Cyan.bold().paint(WORDMARK));
    println!(
        "{} {}  {}",
        Color::Purple.bold().paint("rubylang"),
        Color::White.paint(format!("v{v}")),
        Color::DarkGray.paint("Ruby on fusevm — bytecode VM + Cranelift JIT")
    );
    println!(
        "{}",
        Color::DarkGray.paint("type an expression, or Ctrl-D to exit")
    );
}