Add array expression
This commit is contained in:
parent
02f83784b1
commit
babf666642
5 changed files with 883 additions and 500 deletions
30
test/corpus/expressions.txt
Normal file
30
test/corpus/expressions.txt
Normal 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))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue