forked from batman-nair/LL-1-Parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrammarFutureCont.txt
47 lines (27 loc) · 1.65 KB
/
grammarFutureCont.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
<Sentence> ::= <DeclarativeFutCont> `.' | <W> <NounPhrase> <VerbPhrase> `?'
<DeclarativeFutCont> ::= <NounPhrase> <W> <VerbPhrase>
<W> ::= `will' <WN>
<WN> ::= `not' | e
<VerbPhrase> ::= `be' <Ving> <TimeAdjunct>
<TimeAdjunct> ::= e | `for' <Number> <Period> | `before' <DeclarativePres> | `when' <DeclarativePres> | `after' <DeclarativePres> | `in' <Year> | `next' <TimeAdjunct1>
<TimeAdjunct1> ::= <Weekday> | `month' | `week' | `day'
<DeclarativePres> ::= <NounPhrase> <Verb1> <PlaceAdjunct> <TimeAdjunct>
<PlaceAdjunct> ::= e | `where' <DeclarativePres>
<NounPhrase> ::= <Pronoun> | <Person>
<Verb1> ::= `comes' `back' | `returns' <Verb11>
<Verb11> ::= `home' <Verb12> | <Verb12>
<Verb12> ::= `from' <Event> | e
<Ving> ::= `playing' <Game> | `doing' <Activity> | `travelling' `to' <Place> | `cooking' | `working' | `attending' <Event>
<Number> ::= `2' | `3' | `4' | `5' | `6' | `7' | `8' | `9'
<Period> ::= `years' | `hours' | `months' | `days' | `weeks'
<Year> ::= `2025' | `2026' |`2027' | `2028' | `2029'
<Weekday> ::= `Monday' | `Tuesday' | `Friday' | `Thursday' | `Saturday' | `Sunday'
<Adjective> ::= `angry' | `funny' | `happy' | `evil' | `sad' | `shy'
<Person> ::= `girl' | `boy' | `man' | `woman' | `sister' | `brother' | `uncle' | `aunt' | <Adjective> <Person>
<Pronoun> ::= `I' | `you' | `he' | `she' | `they'
<Game> ::= `the' <Game1> | `chess'
<Game1> ::= `game' | `instruments' | `piano'
<Activity> ::= `homework' | `exercises' | <Activity1> `training' | `chores'
<Activity1> ::= `volleyball' | `ski'
<Place> ::= `Moscow' | `Russia' | `Canada' | `Italy' | `Beijin' | `Riga'
<Event> ::= `the' `party' | `exposition' | `show' | `meeting' | `classes'