]>
Witch of Git - ivy/blob - src/lib.rs
1 use ess
::{self, parser
::ParseError
, Sexp
};
6 pub fn parse(input
: &str) -> Result
<Sexp
, ParseError
> {
7 let (sexp
, rest
) = ess
::parse_one(input
)?
;
8 if !rest
.trim().is
_empty
() {
9 return Err(ParseError
::Unexpected('
\0'
, sexp
.get_loc().1));
14 pub static BUILTINS
: &[&str] = &[
15 "debug", "true", "false", "<", ">", "<=", ">=", "==", "!=", "+", "-", "*", "/", "%",