Skip to content

Commit 3ca9f36

Browse files
authored
Merge pull request antlr#592 from endrebjorsvik/master
Improving Python compatibility, and adding indexing capabilities.
2 parents c8b0a73 + 962ef0c commit 3ca9f36

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

vhdl/vhdl.g4

+5-5
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ disconnection_specification
550550
;
551551

552552
discrete_range
553-
: range
553+
: range_decl
554554
| subtype_indication
555555
;
556556

@@ -975,7 +975,7 @@ name_function_call_or_indexed_part
975975
;
976976

977977
name_slice_part
978-
: LPAREN explicit_range ( COMMA explicit_range )* RPAREN
978+
: ( LPAREN explicit_range ( COMMA explicit_range )* RPAREN )+
979979
;
980980

981981
selected_name
@@ -1198,17 +1198,17 @@ quantity_specification
11981198
: quantity_list COLON name
11991199
;
12001200

1201-
range
1201+
range_decl
12021202
: explicit_range
12031203
| name
12041204
;
12051205

12061206
explicit_range
1207-
: simple_expression direction simple_expression
1207+
: simple_expression ( direction simple_expression )?
12081208
;
12091209

12101210
range_constraint
1211-
: RANGE range
1211+
: RANGE range_decl
12121212
;
12131213

12141214
record_nature_definition

0 commit comments

Comments
 (0)