101 lines
1.5 KiB
Plaintext
101 lines
1.5 KiB
Plaintext
==================
|
|
Simple Function
|
|
==================
|
|
|
|
function { "Hiya" }
|
|
|
|
---
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(value
|
|
(function
|
|
(statement
|
|
(expression
|
|
(value
|
|
(string)))))))))
|
|
|
|
==================
|
|
Function Call
|
|
==================
|
|
|
|
(foobar "Hiya")
|
|
|
|
---
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(function_call
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(string)))))))
|
|
|
|
==================
|
|
Complex Function
|
|
==================
|
|
|
|
function <message number> {
|
|
(output message)
|
|
(output number)
|
|
}
|
|
|
|
---
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(value
|
|
(function
|
|
(identifier)
|
|
(identifier)
|
|
(statement
|
|
(expression
|
|
(tool
|
|
(expression
|
|
(identifier))))
|
|
(expression
|
|
(tool
|
|
(expression
|
|
(identifier))))))))))
|
|
|
|
==================
|
|
Complex Function Call
|
|
==================
|
|
|
|
(foobar
|
|
"hi"
|
|
42
|
|
{
|
|
x = 1
|
|
y = 2
|
|
}
|
|
)
|
|
|
|
---
|
|
|
|
(root
|
|
(statement
|
|
(expression
|
|
(function_call
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(string)))
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(expression
|
|
(value
|
|
(map
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(integer)))
|
|
(identifier)
|
|
(expression
|
|
(value
|
|
(integer))))))))))
|