This OCaml project converts Regular Expressions (Regex) into Nondeterministic Finite Automata (NFA). It is useful for students and researchers working with formal languages and automata theory.
- Converts Regular Expressions into NFA using Thompson’s Construction.
- Supports concatenation, union (
|
), and Kleene star (*
). - Outputs the NFA structure in a formatted representation.
- Handles epsilon (ε) transitions.
To run the program, use:
cat test/test01.in | dune exec -- ./re.exe