2023-11-11 01:44:03 +00:00
|
|
|
================================================================================
|
2023-10-31 19:21:13 +00:00
|
|
|
Simple Function Call
|
2023-11-11 01:44:03 +00:00
|
|
|
================================================================================
|
2023-10-31 19:21:13 +00:00
|
|
|
|
|
|
|
(output 'hi')
|
|
|
|
|
2023-11-11 01:44:03 +00:00
|
|
|
--------------------------------------------------------------------------------
|
2023-10-31 19:21:13 +00:00
|
|
|
|
|
|
|
(root
|
2023-11-11 01:44:03 +00:00
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(function_call
|
2023-11-30 00:23:42 +00:00
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(string)))))))
|
2023-10-31 19:21:13 +00:00
|
|
|
|
2023-11-11 01:44:03 +00:00
|
|
|
================================================================================
|
2023-10-31 19:21:13 +00:00
|
|
|
Nested Function Call
|
2023-11-11 01:44:03 +00:00
|
|
|
================================================================================
|
2023-10-31 19:21:13 +00:00
|
|
|
|
|
|
|
(assert_equal (random_integer) 4)
|
|
|
|
|
2023-11-11 01:44:03 +00:00
|
|
|
--------------------------------------------------------------------------------
|
2023-10-31 19:21:13 +00:00
|
|
|
|
|
|
|
(root
|
2023-11-11 01:44:03 +00:00
|
|
|
(statement
|
|
|
|
(expression
|
|
|
|
(function_call
|
2023-11-30 00:23:42 +00:00
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(expression
|
|
|
|
(identifier))
|
|
|
|
(expression
|
|
|
|
(value
|
|
|
|
(integer)))))))
|