oni_comb_parser_rs/extension/parsers/
primitive_parsers.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use std::fmt::{Debug, Display};

use crate::core::Parsers;

pub trait PrimitiveParsers: Parsers {
  fn begin<'a, I>() -> Self::P<'a, I, ()> {
    Self::empty()
  }

  fn end<'a, I>() -> Self::P<'a, I, ()>
  where
    I: Debug + Display + 'a;

  fn empty<'a, I>() -> Self::P<'a, I, ()>;
}