Skip to content

Instantly share code, notes, and snippets.

@genya0407
Created August 14, 2022 09:20
Show Gist options
  • Save genya0407/191e3c6cc562639657cd6b59c051e6ee to your computer and use it in GitHub Desktop.
Save genya0407/191e3c6cc562639657cd6b59c051e6ee to your computer and use it in GitHub Desktop.
let runtime = minutus::Evaluator::build();
let value = runtime.evaluate("1 + 2")?;
println!("value: {}", i64::try_from_mrb(value)?);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment