Function lip::display_error

source ·
pub fn display_error(
    source: &str,
    error_message: String,
    from: Location,
    to: Location
) -> String
Expand description

Pretty print the error.

Example: 1| A=A+2 ^^^ ⚠️ I can’t find a computation instruction matching A+2. Try something like D+1 and 0.