Struct abnf_parser::parser::Parser [−][src]
pub struct Parser { /* fields omitted */ }
Implementations
impl Parser
[src]
impl Parser
[src]pub fn get_token(&mut self) -> Result<Token, AbnfParseError>
[src]
pub fn get_token(&mut self) -> Result<Token, AbnfParseError>
[src]Get single token and parsed length.
pub fn parse(&mut self) -> Result<HashMap<String, Repetition>, AbnfParseError>
[src]
pub fn parse(&mut self) -> Result<HashMap<String, Repetition>, AbnfParseError>
[src]Parser parse entry point. Return a rulelist.
pub fn parse_rule(&mut self) -> Result<Repetition, AbnfParseError>
[src]
pub fn parse_rule(&mut self) -> Result<Repetition, AbnfParseError>
[src]Recursively parse input and find rules.