Trait peg_runtime::ParseLiteral [−][src]
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.