Crates.io | regex_parser |
lib.rs | regex_parser |
version | 0.1.1 |
source | src |
created_at | 2024-11-13 16:06:44.195678 |
updated_at | 2024-11-15 22:56:39.141364 |
description | This project provides a parser for standard regular expressions based on a defined grammar. |
homepage | |
repository | https://github.com/ttriukhan/rust_regex_parser |
max_upload_size | |
id | 1446692 |
size | 23,310 |
This project provides a parser for standard regular expressions (regex) based on a custom grammar. The parser is capable of recognizing regex patterns that use the following components:
The parser reads a regex pattern as input and processes it according to the following grammar rules:
Now usage functions are not provided, but in next iterations once parsed, the regex could be validated, interpreted, or transformed into other structures, such as finite automata or abstract syntax trees, for use in matching or searching algorithms.
Unit tests are provided to ensure that the parser correctly interprets various regex patterns.