Struct crowbook::parser::Parser
[−]
[src]
pub struct Parser { // some fields omitted }
A parser that reads markdown and convert it to AST (a vector of Token
s)
Methods
impl Parser
[src]
fn new() -> Parser
Creates a parser with the default options
fn with_cleaner(self, cleaner: Box<Cleaner>) -> Parser
Sets cleaner implementation
fn parse_file(&mut self, filename: &str) -> Result<Vec<Token>>
Parse a file and returns an AST
fn parse(&mut self, s: &str) -> Result<Vec<Token>>
Parse a string and returns an AST, that is a vector of Token
s
Returns a result, at this method might fail.