inktree 0.1.0

An incremental syntax tree engine for fast, expressive language tooling in Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::{chumsky_ext::BuilderParser, derive::language::Syntax};

pub trait Parseable: Sized
where
    Self::Syntax: Syntax + 'static,
{
    type Syntax;

    fn parser<'src, 'cache, 'interner, 'borrow, 'extra, Err>()
    -> impl BuilderParser<'src, 'cache, 'interner, 'borrow, (), Err, Self::Syntax> + Clone
    where
        Err: chumsky::error::Error<'src, &'src str> + 'extra,
        'interner: 'cache,
        'borrow: 'interner,
        'src: 'extra,
        'cache: 'extra;
}