Trait peg_runtime::ParseLiteral
source · [−]pub trait ParseLiteral: Parse {
fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>;
}Expand description
A parser input type supporting the "literal" syntax.
Required Methods
fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>
fn parse_string_literal(&self, pos: usize, literal: &str) -> RuleResult<()>
Attempt to match the literal string at pos, returning whether it
matched or failed.