Add array types

This commit is contained in:
Bruno BELANYI 2022-06-01 20:54:35 +02:00
parent dd0af53fa0
commit 1e5f7cd5d5
5 changed files with 1529 additions and 1378 deletions

View file

@ -81,6 +81,37 @@ type record = { a: int, }
type: (identifier)
(ERROR))))
================================================================================
Array type declaration
================================================================================
type array_of_int = array of int
--------------------------------------------------------------------------------
(source_file
(type_declaration
name: (identifier)
value: (array_type
element_type: (identifier))))
================================================================================
Array type declaration non-associativity
================================================================================
type array_of_array_of_int = array of array of int
--------------------------------------------------------------------------------
(source_file
(ERROR
(type_declaration
name: (identifier)
value: (array_type
element_type: (identifier)))
(identifier))
(identifier))
================================================================================
Function declaration
================================================================================