56 lines
1.4 KiB
Plaintext
56 lines
1.4 KiB
Plaintext
================================================================================
|
|
unary operator -
|
|
================================================================================
|
|
|
|
foo = -3
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(operation
|
|
(unary_operation
|
|
(literal_value
|
|
(numeric_lit))))))))
|
|
|
|
================================================================================
|
|
unary operator !
|
|
================================================================================
|
|
|
|
foo = !true
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(operation
|
|
(unary_operation
|
|
(literal_value
|
|
(bool_lit))))))))
|
|
|
|
================================================================================
|
|
binary operators +
|
|
================================================================================
|
|
|
|
foo = 1+2
|
|
|
|
--------------------------------------------------------------------------------
|
|
|
|
(config_file
|
|
(body
|
|
(attribute
|
|
(identifier)
|
|
(expression
|
|
(operation
|
|
(binary_operation
|
|
(literal_value
|
|
(numeric_lit))
|
|
(literal_value
|
|
(numeric_lit))))))))
|