rimu-parse 0.2.0

A data structure template system.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use chumsky::{prelude::Simple, Parser};
use rimu_meta::Span;

use crate::token::Token;

mod block;
mod expression;

pub(crate) use block::compile_block;
pub(crate) use expression::compile_expression;

pub type CompilerError = Simple<Token, Span>;

pub(crate) trait Compiler<T>:
    Parser<Token, T, Error = CompilerError> + Sized + Clone
{
}
impl<P, T> Compiler<T> for P where P: Parser<Token, T, Error = CompilerError> + Clone {}