Skip to content

Commit

Permalink
test: Binary expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Sep 3, 2024
1 parent f6923ae commit bf72cb6
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions test/corpus/operations.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
===
Operations
===

420 + 69 # Basic binary operation
4 + 2 + 0 # Left associativity

---

(source_file
(statement
(expression
(binary_expression
(expression
(literal
(number)
)
)
(operator)
(expression
(literal
(number)
)
)
)
)
)
(statement
(comment)
)
(statement
(expression
(binary_expression
(expression
(binary_expression
(expression
(literal
(number)
)
)
(operator)
(expression
(literal
(number)
)
)
)
)
(operator)
(expression
(literal
(number)
)
)
)
)
)
(statement
(comment)
)
)

0 comments on commit bf72cb6

Please sign in to comment.