crisp 0.4.2

A small, expressive Lisp-inspired programming language.
1
2
3
4
5
6
7
8
9
10
use chumsky::Parser;
use crisp::parsing::{crip_parser, error::print_parse_errors};

fn main() {
    let crisp_txt = "((defn foo[x: i32, y: i32]->i32 (+ 10 20)))";
    let (_, errors) = crip_parser().parse(crisp_txt).into_output_errors();
    if !errors.is_empty() {
        print_parse_errors(crisp_txt, &errors);
    }
}