Add array types
This commit is contained in:
parent
dd0af53fa0
commit
1e5f7cd5d5
5 changed files with 1529 additions and 1378 deletions
|
|
@ -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
|
||||
================================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue