-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathdata.txt
51 lines (45 loc) · 1.16 KB
/
data.txt
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#-------------------------------------------------------------------------------------------------
#RULES:
#
# #to start a comment
#tuple name supported: "states",'alphabet','transition','start_state', accept_states
#to declare a tuple, (name of tuple) -> (values seperated by comma)
# transition->
# {
# initial={state},
# value={alphabet},
# target = {state}
# }:
# {
# initial={state},
# value={alphabet},
# target = {state}
# }
# states, accept states and start state must be an integer
# alphabet must be a string
#-------------------------------------------------------------------------------------------------
states->0,1,2,3; #this tuple declares the state state
alphabet->a,b,c; #this tuple declares the alphabet
transition->
{
initial=0, # inital state
value=a, # the value
target=1 # target state
}:
{
initial=1,
value=b,
target=2
}:
{
initial=2,
value=a,
target=2
}:
{
initial=2,
value=c,
target=3
}; #this tuple declares the transition function
start_state->0; #this tuple declares the start state
accept_states->1,2,3; #this tuple declares the accept states