forked from DaymudeLab/CSE355-MachineDesign
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.py
More file actions
31 lines (21 loc) · 636 Bytes
/
test.py
File metadata and controls
31 lines (21 loc) · 636 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from src.cse355_machine_design import PDA, registry
def testPda():
Q = {'q0', 'q1'}
Sigma = {'0', '1', '#'}
Gamma = {'0', '1', '$'}
delta = {
('q0', '0', '0'): {('q1', '0')},
}
q0 = "q0"
F = {}
return PDA(Q, Sigma, Gamma, delta, q0, F)
if __name__ == "__main__":
#problem1().submit_as_answer(1)
testPda().display_state_diagram()
#problem2().submit_as_answer(2)
#problem3().submit_as_answer(3)
#problem4().submit_as_answer(4)
#problem5().submit_as_answer(5)
#problem6().submit_as_answer(6)
#problem7().submit_as_answer(7)
registry.export_submissions()