-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTODO
52 lines (42 loc) · 864 Bytes
/
TODO
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
52
prolog dcg
INPUT:
Animal
Fish
minnow
Bug
ant
beetle
Plant
azalea
OR:
Animal { Fish { minnow }, Bug { ant, beetle } }, Plant { azalea }
OR:
<Animal>
<Fish>
<minnow/>
</Fish>
<Bug>
<ant/>
<beetle/>
</Bug>
</Animal>
<Plant>
<azalea/>
</Plant>
OUTPUT
Animal
Animal|Fish
Animal|Fish|minnow
Animal|Bug
Animal|Bug|ant
Animal|Bug|beetle
Plant|azalea
maps to table
{'class': 'warrior', hand': 'halberd', 'armor': 'full plate' },
{'hand': 'dagger', 'armor': 'studded leather', 'head': 'cap' },
{'hand': 'sword', 'feet': 'leather boots', 'head': 'helmet' }
(not aligned though)
class | hand | armor | head | feet
warrior | halberd | full plate | |
| dagger | studded leather | cap |
| sword | | helmet | leather boots