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

56 lines
1.3 KiB
Plaintext
Raw Normal View History

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