Add function calls
This commit is contained in:
parent
136924cb26
commit
8921953bbb
5 changed files with 1258 additions and 794 deletions
|
|
@ -85,3 +85,56 @@ record_type { a = 12, }
|
|||
field: (identifier)
|
||||
init: (integer_literal)
|
||||
(ERROR)))
|
||||
|
||||
================================================================================
|
||||
Function call
|
||||
================================================================================
|
||||
|
||||
f(12, "27")
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(function_call
|
||||
function: (identifier)
|
||||
arguments: (integer_literal)
|
||||
arguments: (string_literal)))
|
||||
|
||||
================================================================================
|
||||
Function call single argument
|
||||
================================================================================
|
||||
|
||||
f(12)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(function_call
|
||||
function: (identifier)
|
||||
arguments: (integer_literal)))
|
||||
|
||||
================================================================================
|
||||
Function call no arguments
|
||||
================================================================================
|
||||
|
||||
f()
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(function_call
|
||||
function: (identifier)))
|
||||
|
||||
================================================================================
|
||||
Function call trailing comma
|
||||
================================================================================
|
||||
|
||||
f(12,)
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(source_file
|
||||
(function_call
|
||||
function: (identifier)
|
||||
arguments: (integer_literal)
|
||||
(ERROR)))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue