-
Notifications
You must be signed in to change notification settings - Fork 0
/
SVCFG.txt
28 lines (24 loc) · 1000 Bytes
/
SVCFG.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
WeatherP -> "det är" Temp "och" Condition |
"det är" Condition "och" Temp |
LocP "är det" Condition "och" Temp TimeP |
"det är" Condition LocP TimeP |
;
LocP -> "i" Place-I | "på" Place-PÅ ;
TimeP -> "akkurat nå" |
"imorgon"
;
Condition -> "molnig" | "snöar" ;
Place-I -> "Bloomington" | "Barcelona" | "Moscow" ;
Place-PÅ -> "Gotland" | ";
cfg1.add_prod('WeatherP', 'VP Temp CC Cond TimeP | VP Cond CC Temp | Loc VP Cond CC Temp TimeP | VP Cond Loc TimeP')
cfg1.add_prod('VP', 'det är CondAdj | det CondVB')
cfg1.add_prod('Temp', '26 grader | 30 grader')
cfg1.add_prod('CC', 'och')
cfg1.add_prod('Loc' , 'LocI PlaceI | LocPÅ PlacePÅ')
cfg1.add_prod('LocI' , 'i')
cfg1.add_prod('LocPÅ', 'på')
cfg1.add_prod('CondAdj', 'molnig')
cfg1.add_prod('CondVB', 'snöar')
cfg1.add_prod('TimeP', 'akkurat nå | imorgon')
cfg1.add_prod('PlaceI', 'Bloomington | Stockholm')
cfg1.add_prod('PlacePÅ', 'Gotland | Färöarna')