Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for converting multiple NFAs into one DFA. #7

Merged
merged 14 commits into from
Dec 8, 2024
Prev Previous commit
add DFA single character simulation skeleton code
Louis-He committed Dec 8, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
commit 9efb249c32fd60dcd48a9229c68852eadf82634d
9 changes: 9 additions & 0 deletions src/dfa/dfa.rs
Original file line number Diff line number Diff line change
@@ -124,6 +124,15 @@ impl DFA {

(None, false)
}

fn reset_simulation(&self) {
// TODO: Implement this function
}

fn simulate_single_char(&self, input: char) -> (Option<usize>) {
// TODO: Implement this function
None
}
}

// Helper functions for converting multiple NFAs to a single DFA