js/tests/expressions/r/binary_ops.ast

43 lines
1.7 KiB
Plaintext

Program at 1:0
+-- sourceType: script
+-- body:
| +-- 0: ExpressionStatement at 1:0
| | +-- expression: SequenceExpression at 1:0
| | | +-- expressions:
| | | | +-- 0: BinaryExpression at 1:0
| | | | | +-- operator: +
| | | | | +-- left: Literal at 1:0
| | | | | | +-- value: 2.0
| | | | | +-- right: BinaryExpression at 1:2
| | | | | | +-- operator: *
| | | | | | +-- left: Literal at 1:2
| | | | | | | +-- value: 2.0
| | | | | | +-- right: Literal at 1:4
| | | | | | | +-- value: 2.0
| +-- 1: ExpressionStatement at 2:0
| | +-- expression: SequenceExpression at 2:0
| | | +-- expressions:
| | | | +-- 0: BinaryExpression at 2:0
| | | | | +-- operator: ==
| | | | | +-- left: BinaryExpression at 2:0
| | | | | | +-- operator: +
| | | | | | +-- left: Literal at 2:0
| | | | | | | +-- value: 2.0
| | | | | | +-- right: Literal at 2:6
| | | | | | | +-- value: 2.0
| | | | | +-- right: Literal at 2:11
| | | | | | +-- value: 5.0
| +-- 2: ExpressionStatement at 3:0
| | +-- expression: SequenceExpression at 3:0
| | | +-- expressions:
| | | | +-- 0: BinaryExpression at 3:0
| | | | | +-- operator: !==
| | | | | +-- left: BinaryExpression at 3:0
| | | | | | +-- operator: /
| | | | | | +-- left: Literal at 3:0
| | | | | | | +-- value: 1.0
| | | | | | +-- right: Literal at 3:2
| | | | | | | +-- value: 0.0
| | | | | +-- right: Identifier at 3:8
| | | | | | +-- name: infty