Function fend_core::evaluate [−][src]
pub fn evaluate(
input: &str,
context: &mut Context
) -> Result<FendResult, String>
Expand description
This function evaluates a string using the given context. Any evaluation using this function cannot be interrupted.
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.