Skip to content

Instantly share code, notes, and snippets.

@travisstaloch
travisstaloch / peg.rs
Last active November 14, 2018 17:37 — forked from eyelash/peg.rs
#![feature(ptr_offset_from)]
type ParseResult<'a> = Option<&'a str>;
trait Peg<'a> {
fn p(&self, s: &mut &'a str) -> ParseResult<'a>;
}
struct Wrap<T>(T);