[][src]Function parsley::run

pub fn run(code: &str) -> Result

Run a code snippet in the base context.

Example

use parsley::prelude::*;

assert!(run("x").is_err());
assert!(run("null").is_ok());
assert_eq!(run("null").unwrap(), SExp::Null);