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

37 lines
977 B
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)
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
2023-11-15 00:22:26 +00:00
(integer))))))))