Files
tree-sitter-jhcl/test/corpus/operators.txt

56 lines
1.4 KiB
Plaintext
Raw Normal View History

================================================================================
2021-06-13 09:26:15 +02:00
unary operator -
================================================================================
2021-06-13 09:26:15 +02:00
foo = -3
--------------------------------------------------------------------------------
2021-06-13 09:26:15 +02:00
(config_file
(body
(attribute
(identifier)
(expression
(operation
(unary_operation
(literal_value
(numeric_lit))))))))
2021-06-13 09:26:15 +02:00
================================================================================
2021-06-13 09:26:15 +02:00
unary operator !
================================================================================
2021-06-13 09:26:15 +02:00
foo = !true
--------------------------------------------------------------------------------
2021-06-13 09:26:15 +02:00
(config_file
(body
(attribute
(identifier)
(expression
(operation
(unary_operation
(literal_value
(bool_lit))))))))
2021-06-13 09:26:15 +02:00
================================================================================
2021-06-13 09:26:15 +02:00
binary operators +
================================================================================
2021-06-13 09:26:15 +02:00
foo = 1+2
--------------------------------------------------------------------------------
2021-06-13 09:26:15 +02:00
(config_file
(body
(attribute
(identifier)
(expression
(operation
(binary_operation
(literal_value
(numeric_lit))
(literal_value
(numeric_lit))))))))