fmt tests; properly define string literals; work on scanner
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
==================
|
||||
================================================================================
|
||||
unary operator -
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
foo = -3
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
@@ -12,39 +12,44 @@ foo = -3
|
||||
(identifier)
|
||||
(expression
|
||||
(operation
|
||||
(unary_operation (expr_term (literal_value (numeric_lit)))))))))
|
||||
(unary_operation
|
||||
(literal_value
|
||||
(numeric_lit))))))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
unary operator !
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
foo = !true
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(attribute
|
||||
(identifier)
|
||||
(expression
|
||||
(operation
|
||||
(unary_operation (expr_term (literal_value (bool_lit)))))))))
|
||||
(expression
|
||||
(operation
|
||||
(unary_operation
|
||||
(literal_value
|
||||
(bool_lit))))))))
|
||||
|
||||
==================
|
||||
================================================================================
|
||||
binary operators +
|
||||
==================
|
||||
================================================================================
|
||||
|
||||
foo = 1+2
|
||||
|
||||
---
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
(config_file
|
||||
(body
|
||||
(attribute
|
||||
(identifier)
|
||||
(expression
|
||||
(operation
|
||||
(binary_operation
|
||||
(expr_term (literal_value (numeric_lit)))
|
||||
(expr_term (literal_value (numeric_lit)))))))))
|
||||
|
||||
(expression
|
||||
(operation
|
||||
(binary_operation
|
||||
(literal_value
|
||||
(numeric_lit))
|
||||
(literal_value
|
||||
(numeric_lit))))))))
|
||||
|
||||
Reference in New Issue
Block a user