1 2 3 4 5 6 7 8 9 10 11
use pest::iterators::Pairs; use crate::error::Result; pub trait FromPairs: Sized { fn from_pairs(pairs: &mut Pairs<Rule>) -> Result<Self>; } #[derive(pest_derive::Parser)] #[grammar = "./src/parser/jslt.pest"] pub struct JsltGrammar;