lerr 0.1.0

simple errors for lang-dev
Documentation

lerr

extremely barebones error diagnostics for lang-dev

example error

usage

heres the code for the sample above. feel free to add coloring with your favorite coloring crate, or just use raw ansi sequences.

use lerr::Error;
let out = Error::new("Strin::new()")
    .label((0..5, "a 'strin' you say"))
    .note("i think you meant String")
    .to_string();
println!("{out}");

Please note that only one label per line is currently supported, and multiline labels are not yet supported. If that doesnt work for you, use something like ariadne.