Skip to content

Commit

Permalink
Actually minimize the produced DFA
Browse files Browse the repository at this point in the history
  • Loading branch information
adaszko committed Jun 7, 2023
1 parent a6e667c commit db0208e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ fn compile(args: &CompileArgs) -> Result<()> {
println!("Regex -> DFA");
let dfa = DirectDFA::from_regex(&regex);

println!("Minimizing DFA");
let dfa = dfa.minimize();

let mut output = String::default();

if let Some(path) = &args.bash_script_path {
Expand Down

0 comments on commit db0208e

Please sign in to comment.