93 |
| medium_list_1 s COMMA s medium { $5 : $1 } |
| medium_list_1 s COMMA s medium { $5 : $1 } |
94 |
|
|
95 |
media :: { Statement } |
media :: { Statement } |
96 |
: MEDIA_SYM s medium_list_1 s LBRACE s ruleset_list s RBRACE |
: MEDIA_SYM s medium_list_1 LBRACE s ruleset_list RBRACE |
97 |
{ Media $3 $7 } |
{ Media $3 $6 } |
98 |
|
|
99 |
medium :: { String } |
medium :: { String } |
100 |
: IDENT { $1 } |
: IDENT { $1 } |
104 |
| ruleset_list s ruleset { $3 : $1 } |
| ruleset_list s ruleset { $3 : $1 } |
105 |
|
|
106 |
page :: { Statement } |
page :: { Statement } |
107 |
: PAGE_SYM s LBRACE s declaration_list_1 s RBRACE |
: PAGE_SYM LBRACE s declaration_list_1 RBRACE |
108 |
{ Page Nothing $5 } |
{ Page Nothing $4 } |
109 |
| PAGE_SYM s pseudo_page s LBRACE s declaration_list_1 RBRACE |
| PAGE_SYM s pseudo_page LBRACE s declaration_list_1 RBRACE |
110 |
{ Page (Just $3) $7 } |
{ Page (Just $3) $6 } |
111 |
|
|
112 |
declaration_list_1 :: { [Declaration] } |
declaration_list_1 :: { [Declaration] } |
113 |
: { [] } |
: { [] } |
114 |
| declaration s { [$1] } |
| declaration { [$1] } |
115 |
| declaration_list_1 s SEMI { $1 } |
| declaration_list_1 s SEMI s { $1 } |
116 |
| declaration_list_1 s SEMI s declaration |
| declaration_list_1 s SEMI s declaration |
117 |
{ $5 : $1 } |
{ $5 : $1 } |
118 |
|
|
120 |
: COLON IDENT { $2 } |
: COLON IDENT { $2 } |
121 |
|
|
122 |
ruleset :: { Statement } |
ruleset :: { Statement } |
123 |
: selector_list_1 s LBRACE s declaration_list_1 s RBRACE |
: selector_list_1 LBRACE s declaration_list_1 RBRACE |
124 |
{ Ruleset $1 $5 } |
{ Ruleset $1 $4 } |
125 |
|
|
126 |
selector_list_1 :: { [Selector] } |
selector_list_1 :: { [Selector] } |
127 |
: selector { [$1] } |
: selector { [$1] } |
181 |
|
|
182 |
declaration :: { Declaration } |
declaration :: { Declaration } |
183 |
: property COLON s value_list_1 { ($1, $4, False) } |
: property COLON s value_list_1 { ($1, $4, False) } |
184 |
| property COLON s value_list_1 s prio { ($1, $4, True) } |
| property COLON s value_list_1 prio { ($1, $4, True) } |
185 |
|
|
186 |
property :: { String } |
property :: { String } |
187 |
: IDENT { $1 } |
: IDENT s { $1 } |
188 |
|
|
189 |
prio :: { Bool } |
prio :: { Bool } |
190 |
: IMPORTANT_SYM { True } |
: IMPORTANT_SYM { True } |
194 |
| value s value_list { $1 : $3 } |
| value s value_list { $1 : $3 } |
195 |
|
|
196 |
value_list_1 :: { [Value] } |
value_list_1 :: { [Value] } |
197 |
: value { [$1] } |
: value s { [$1] } |
198 |
| value s value_list_1 { $1 : $3 } |
| value s value_list_1 { $1 : $3 } |
199 |
|
|
200 |
value :: { Value } |
value :: { Value } |
216 |
|
|
217 |
s :: {} |
s :: {} |
218 |
: { } |
: { } |
219 |
| S { } |
| s S { } |
220 |
|
|
221 |
{ |
{ |
222 |
happyError :: [TokenPosn] -> a |
happyError :: [TokenPosn] -> a |