Add function calls

This commit is contained in:
Bruno BELANYI 2022-06-01 19:58:40 +02:00
parent 136924cb26
commit 8921953bbb
5 changed files with 1258 additions and 794 deletions

View file

@ -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)))