diff --git a/test/corpus/operations.txt b/test/corpus/operations.txt index 1e2b7f3..ad678c6 100644 --- a/test/corpus/operations.txt +++ b/test/corpus/operations.txt @@ -4,6 +4,7 @@ Operations 420 + 69 # Basic binary operation 4 + 2 + 0 # Left associativity +4 + 2 * 0 # Operator precedence --- @@ -16,7 +17,7 @@ Operations (number) ) ) - (operator) + (additive_operator) (expression (literal (number) @@ -38,7 +39,7 @@ Operations (number) ) ) - (operator) + (additive_operator) (expression (literal (number) @@ -46,7 +47,7 @@ Operations ) ) ) - (operator) + (additive_operator) (expression (literal (number) @@ -58,4 +59,34 @@ Operations (statement (comment) ) + (statement + (expression + (binary_expression + (expression + (literal + (number) + ) + ) + (additive_operator) + (expression + (binary_expression + (expression + (literal + (number) + ) + ) + (multiplicative_operator) + (expression + (literal + (number) + ) + ) + ) + ) + ) + ) + ) + (statement + (comment) + ) )