52 lines
1.1 KiB
Plaintext
52 lines
1.1 KiB
Plaintext
================================================================================
|
|
Simple Block
|
|
================================================================================
|
|
|
|
{
|
|
output(123)
|
|
}
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(root
|
|
(statement
|
|
(block
|
|
(statement
|
|
(expression
|
|
(function_call
|
|
(function_expression
|
|
(identifier))
|
|
(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)))))))
|