Add array expression

This commit is contained in:
Bruno BELANYI 2022-06-01 19:48:54 +02:00
parent 02f83784b1
commit babf666642
5 changed files with 883 additions and 500 deletions

View file

@ -0,0 +1,30 @@
================================================================================
Array expression
================================================================================
array_of_int[42] of 0
--------------------------------------------------------------------------------
(source_file
(array_expression
type: (identifier)
size: (integer_literal)
init: (integer_literal)))
================================================================================
Array associativity
================================================================================
array_of_array_of_int[12] of array_of_int[27] of 0
--------------------------------------------------------------------------------
(source_file
(array_expression
type: (identifier)
size: (integer_literal)
init: (array_expression
type: (identifier)
size: (integer_literal)
init: (integer_literal))))