maslc 1.0.1

Maduka Authorization Specification Language (MASL) toolchain and runtime
/// Runs the `explain` command, printing extended documentation for an error code.
pub fn run(code: String) {
    match code.as_str() {
        "E0100" => {
            println!("Error[E0100]: Unexpected token or syntax error.");
            println!(
                "This occurs when the parser encounters tokens that do not match the expected PEG rules."
            );
        }
        "E0201" => {
            println!("Error[E0201]: Duplicate resource or subject declaration.");
            println!(
                "Each subject and resource must be declared only once per schema namespace."
            );
        }
        "E0202" => {
            println!("Error[E0202]: Circular relation hierarchy or alias dependency.");
            println!(
                "The compiler detected a path dependency cycle that could cause infinite loops at runtime."
            );
        }
        c => {
            println!("No detailed explanation available for code: {}", c);
        }
    }
}