bobo_html_parser 0.1.1

A simple parser of html markdown
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use std::io;
use thiserror::Error;

use crate::grammar::Rule;

#[derive(Error, Debug)]
pub enum HtmlParserError {
    #[error("Parse error: {0}")]
    ParseError(#[from] Box<pest::error::Error<Rule>>),

    #[error("File I/O error: {0}")]
    IoError(#[from] io::Error),
}