-
Notifications
You must be signed in to change notification settings - Fork 1
/
readme.txt
62 lines (38 loc) · 1013 Bytes
/
readme.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
52
53
54
55
56
hw1_q2.xml
Options IN ORDER:
City
- San Diego
- Seattle
State
- California
- Seattle
Forecast
- current
- Short term
- long term
===================================================
hw1_q3.xml
Main Options
- One -> IN ORDER
- Two -> ALL AT ONCE
Options IN ORDER:
City Options
- San Diego
- Seattle
State Options
- California
- Seattle
Forecast Options
- current
- Short term
- long term
Options ALL AT ONCE:
City, State, Forecast Options
- [ San Diego, Seattle] , [California, Washington], [current, Short term, long term ]
One major problem I encountered with the assignment was constructing the grammar
for question three to make the system to be able to parse all options all at once.
However, after much browsing on the documentation page, I have managed to resolve
the problem. The options are parsed individually under different rule id and then
concatenated together.
One insight would be that lots of variations of option combination is possible via
the same technique. Thus,