dust/tree-sitter-dust/corpus/built_in_function.txt

48 lines
1.2 KiB
Plaintext
Raw Normal View History

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
(built_in_function
(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)
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
(built_in_function
(expression
(function_call
(built_in_function)))
(expression
(value
(integer)))))))
(statement
(expression
(function_call
(built_in_function
(expression
(function_call
(built_in_function
(expression
(value
(integer)))))))))))