regex_parser 0.1.1

This project provides a parser for standard regular expressions based on a defined grammar.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use pest::error::Error as PestError;
use pest_derive::Parser;
use thiserror::Error;

#[derive(Parser)]
#[grammar = "./grammar.pest"]
///A simple grammar for parsing standard regular expressions
pub struct RegexGrammar;

#[derive(Debug, Error)]
#[error("Parsing error occurred: {0}")]
/// An error that can occur during parsing standard regular expressions.
pub struct RegexParsingError(#[from] PestError<Rule>);