diff options
author | Matthew Sotoudeh <matthew@masot.net> | 2024-03-19 11:25:03 -0700 |
---|---|---|
committer | Matthew Sotoudeh <matthew@masot.net> | 2024-03-19 11:25:03 -0700 |
commit | 5214650e55e52e652f256316e2937274495fd35b (patch) | |
tree | 95dfc0d66e271b828054b71ac70b9154e6033035 | |
parent | a55ef8495f79d297c5fbf74c47c3243b3caf68d1 (diff) |
add a simplified version of the regex
-rw-r--r-- | examples/simpler_correct.regex | 1 | ||||
-rw-r--r-- | nfa.py | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/examples/simpler_correct.regex b/examples/simpler_correct.regex new file mode 100644 index 0000000..99b8458 --- /dev/null +++ b/examples/simpler_correct.regex @@ -0,0 +1 @@ +(S*)((c(S*)c)|(h(S*)h)|(p(S*)p)) @@ -119,4 +119,4 @@ class NFA: for state, transitions in self.transitions.items(): print(state, state in self.start_set, state in self.accepting) for k, vs in transitions.items(): - print("\t", state, "[", k, "]", "->", vs) + print("\t", k, "->", vs) |