gregex-logic

Crates.iogregex-logic
lib.rsgregex-logic
version0.1.1
sourcesrc
created_at2024-07-04 06:42:24.974579
updated_at2024-07-04 06:42:24.974579
descriptionLogic for the gregex crate
homepage
repositoryhttps://github.com/Saphereye/gregex/gregex-logic
max_upload_size
id1291345
size26,596
Adarsh Das (Saphereye)

documentation

https://docs.rs/gregex-logic

README

Gregex Logic

Contains the underlying logic of the Gregex crate. This crate is responsible for converting the Node tree to the NFA. The NFA is then used to match the input string.

The crate uses the Glushkov's Construction Algorithm to convert the Node tree to the NFA. The advantage over the Thompson's Construction Algorithm is that the NFA generated has states equal to number of terminals + 1. Although, the NFA generated by Thumpson's can be converted to the Glushkov's form, by removing the epsilon transitions.

The translation module contains the code to convert the Node tree to the NFA. The nfa module contains the code to match the input string with the NFA.

Commit count: 23

cargo fmt