leo/tests/expectations/parser/expression/binary/add.out

547 lines
12 KiB
Plaintext
Raw Normal View History

2021-03-30 01:45:10 +03:00
---
2021-04-07 20:01:24 +03:00
namespace: ParseExpression
2021-03-30 01:45:10 +03:00
expectation: Pass
outputs:
- Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "1"
- span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 3
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "1"
- span:
2022-05-03 21:48:48 +03:00
lo: 6
hi: 9
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
- Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "2"
- span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 3
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "3"
- span:
2022-05-03 21:48:48 +03:00
lo: 4
hi: 7
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 7
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
- Binary:
left:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "1"
- span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 3
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "2"
- span:
2022-05-03 21:48:48 +03:00
lo: 6
hi: 9
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "3"
- span:
2022-05-03 21:48:48 +03:00
lo: 12
hi: 15
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 15
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
- Binary:
left:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "1"
- span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 3
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "2"
- span:
2022-05-03 21:48:48 +03:00
lo: 6
hi: 9
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Mul
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
right:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "3"
- span:
2022-05-03 21:48:48 +03:00
lo: 12
hi: 15
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "4"
- span:
2022-05-03 21:48:48 +03:00
lo: 18
hi: 21
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Mul
span:
2022-05-03 21:48:48 +03:00
lo: 12
hi: 21
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 21
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
- Binary:
left:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "1"
- span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 3
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "2"
- span:
2022-05-03 21:48:48 +03:00
lo: 6
hi: 9
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "3"
- span:
2022-05-03 21:48:48 +03:00
lo: 12
hi: 15
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Sub
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 15
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
- Binary:
left:
Binary:
left:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "1"
- span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 3
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "2"
- span:
2022-05-03 21:48:48 +03:00
lo: 6
hi: 9
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Mul
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
right:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "3"
- span:
2022-05-03 21:48:48 +03:00
lo: 12
hi: 15
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "4"
- span:
2022-05-03 21:48:48 +03:00
lo: 18
hi: 21
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Mul
span:
2022-05-03 21:48:48 +03:00
lo: 12
hi: 21
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 21
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
right:
Binary:
left:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "5"
- span:
2022-05-03 21:48:48 +03:00
lo: 24
hi: 27
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
right:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2021-03-30 01:45:10 +03:00
- "6"
- span:
2022-05-03 21:48:48 +03:00
lo: 30
hi: 33
2023-08-10 00:38:33 +03:00
- 0
2021-03-30 01:45:10 +03:00
op: Mul
span:
2022-05-03 21:48:48 +03:00
lo: 24
hi: 33
2023-08-10 00:38:33 +03:00
id: 0
2021-03-30 01:45:10 +03:00
op: Sub
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 33
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Unary:
receiver:
Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Add
span:
lo: 2
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Negate
span:
lo: 1
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Not
span:
lo: 0
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Binary:
left:
Binary:
left:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}"
op: Add
span:
lo: 0
hi: 8
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
op: Add
span:
lo: 0
hi: 15
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":20,\\\"hi\\\":21}\"}"
op: Add
span:
lo: 0
hi: 22
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: Add
span:
lo: 1
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Negate
span:
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Binary:
left:
Unary:
receiver:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
op: Negate
span:
lo: 1
hi: 3
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}"
op: Add
span:
lo: 1
hi: 11
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Add
span:
lo: 2
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Negate
span:
lo: 0
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Binary:
left:
Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Add
span:
lo: 2
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Negate
span:
lo: 1
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
op: Add
span:
lo: 1
hi: 18
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: Add
span:
lo: 1
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Not
span:
lo: 0
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Binary:
left:
Unary:
receiver:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
op: Not
span:
lo: 1
hi: 3
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":9,\\\"hi\\\":10}\"}"
op: Add
span:
lo: 1
hi: 11
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Add
span:
lo: 2
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Not
span:
lo: 0
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Binary:
left:
Unary:
receiver:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":2,\\\"hi\\\":3}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":8,\\\"hi\\\":9}\"}"
op: Add
span:
lo: 2
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Not
span:
lo: 1
hi: 10
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":17}\"}"
op: Add
span:
lo: 1
hi: 18
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
- Binary:
left:
Binary:
left:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":1,\\\"hi\\\":2}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":7,\\\"hi\\\":8}\"}"
op: Add
span:
lo: 1
hi: 9
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":18,\\\"hi\\\":19}\"}"
op: Add
span:
lo: 12
hi: 20
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Add
span:
lo: 1
hi: 20
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Binary:
left:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":26,\\\"hi\\\":27}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":32,\\\"hi\\\":33}\"}"
op: Add
span:
lo: 26
hi: 34
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
right:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":37,\\\"hi\\\":38}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":43,\\\"hi\\\":44}\"}"
op: Add
span:
lo: 37
hi: 45
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Add
span:
lo: 26
hi: 45
2023-08-10 00:38:33 +03:00
id: 0
2022-06-17 01:40:48 +03:00
op: Add
span:
lo: 1
hi: 46
2023-08-10 00:38:33 +03:00
id: 0