Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rick Smetsers
z3gi
Commits
7d1c64d0
Commit
7d1c64d0
authored
Jul 03, 2017
by
Paul Fiterau Brostean
Browse files
Added updated FA models
parent
33ffddf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
z3gi/model/fa.py
View file @
7d1c64d0
...
...
@@ -25,6 +25,13 @@ class DFA(Acceptor):
# print(tr_str)
return
crt_state
class
MutableDFA
(
DFA
,
MutableAcceptorMixin
):
def
__init__
(
self
):
super
().
__init__
([],
{},
{})
def
to_immutable
(
self
)
->
DFA
:
return
DFA
(
self
.
_states
,
self
.
_state_to_trans
,
self
.
_state_to_acc
)
class
MooreMachine
(
Transducer
):
def
__init__
(
self
,
states
,
state_to_trans
,
state_to_out
):
super
().
__init__
(
states
,
state_to_trans
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment