mpl 0.3.0

One-rule TDPL/PEG parsing language with a static-codegen backend (FastParse) that beats pest, peg, nom, winnow, and chumsky on equal-work benchmarks.
Documentation
1
2
3
4
5
6
7
8
9
10
11
#[derive(Clone, Debug, PartialEq)]
pub struct Spanned<N, S> {
    pub node: N,
    pub span: S,
}

impl<N, S> Spanned<N, S> {
    pub fn new(node: N, span: S) -> Self {
        Spanned { node, span }
    }
}