]>
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 (mut sexps
, error
) = ess
::parse(input
);
8 if let Some(err
) = error
{
13 return Err(ParseError
::Sexp(
14 Box
::new(ParseError
::Unexpected('
\0'
, sexps
[1].get_loc().0)),
21 pub static BUILTINS
: &[&str] = &[
22 "debug", "true", "false", "<", ">", "<=", ">=", "==", "!=", "+", "-", "*", "/", "%",