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

52 lines
1.1 KiB
Plaintext
Raw Normal View History

2023-12-31 19:04:10 +00:00
================================================================================
Simple Block
================================================================================
{
output(123)
}
--------------------------------------------------------------------------------
(root
(statement
(block
(statement
(expression
(function_call
(function_expression
(identifier))
2023-12-31 19:04:10 +00:00
(expression
(value
(integer)))))))))
================================================================================
Block with Return
================================================================================
{
1
return 4
5
}
--------------------------------------------------------------------------------
(root
(statement
(block
(statement
(expression
(value
(integer))))
(statement
(return
(statement
(expression
(value
(integer))))))
(statement
(expression
(value
(integer)))))))