Skip to content

grhkm21/rust-dfa-nfa-regex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DN-Regex

Project Aim

I wonder what DN stands for... In this project, I aim to implement conversion between DFA, NFA and Regex representations of regular expressions in Rust.

Based off of @raaidrt/reg.

TODO

Core Functionality

  • Implement DFA representation
  • Implement NFA representation
  • Implement Regex representation

Representation Conversion

  • Implement NFA → DFA
  • Implement DFA → Regex
  • Implement Regex → DFA

Visualization

  • Add checks on whether dot is even installed
  • Implement exporting NFA to .dot
    • Add colors to start and end states
    • Add option to color path after calling .is_match(...)
  • Implement exporting NFA to .png
  • Implement exporting DFA to .dot
  • Implement exporting DFA to .png

Code Base

  • Abstract dump-related functions to separate struct

Examples

  • Add examples for how to use all core functionalities (dump to files, etc.)

About

Converting between DFA, NFA and Regex in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages