File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ modules: /* Empty */ {}
84
84
| modules module {}
85
85
;
86
86
87
- module : header declarations statements footer
87
+ module : header body footer
88
88
{
89
89
if (parse_info->pass_type == COUNT_PASS) {
90
90
parse_info->number_of_modules++;
@@ -126,11 +126,17 @@ header: TOKEN_MODULE TOKEN_REGULARID '(' IdentifierList ')' ';'
126
126
}
127
127
;
128
128
129
+ body : /* Empty */ {}
130
+ | body declaration_statement {}
131
+ ;
132
+
129
133
130
- declarations : /* Empty */ {}
131
- | declarations declaration {}
134
+ declaration_statement : declaration
135
+ |
136
+ statement
132
137
;
133
138
139
+
134
140
declaration : PinType IdentifierList ' ;'
135
141
{
136
142
if (parse_info->pass_type == COUNT_PASS) {
@@ -158,9 +164,7 @@ declaration: PinType IdentifierList ';'
158
164
footer : TOKEN_ENDMODULE {}
159
165
;
160
166
161
- statements : /* Empty */ {}
162
- | statements statement {}
163
- ;
167
+
164
168
165
169
statement : AssignStatement {}
166
170
| TriStatement {}
You can’t perform that action at this time.
0 commit comments