gregex-logic 0.1.1

Logic for the gregex crate
Documentation
  • Coverage
  • 62.07%
    18 out of 29 items documented0 out of 11 items with examples
  • Size
  • Source code size: 26.25 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.36 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • Saphereye

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.