Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 621 Bytes

File metadata and controls

14 lines (11 loc) · 621 Bytes

Regex to NFA Converter

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.

✨ Features

  • 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.

🚀 Installation & Usage

To run the program, use:

cat test/test01.in | dune exec -- ./re.exe