Function fend_core::evaluate_with_interrupt

source ·
pub fn evaluate_with_interrupt(
    input: &str,
    context: &mut Context,
    int: &impl Interrupt
) -> Result<FendResult, String>
Expand description

This function evaluates a string using the given context and the provided Interrupt object.

For example, passing in the string "1 + 1" will return a result of "2".

§Errors

It returns an error if the given string is invalid. This may be due to parser or runtime errors.