leo/tests/expectations/parser/statement/assign.out

44 lines
1.1 KiB
Plaintext
Raw Normal View History

2021-03-30 01:45:10 +03:00
---
2021-04-07 20:01:24 +03:00
namespace: ParseStatement
2021-03-30 01:45:10 +03:00
expectation: Pass
outputs:
- Assign:
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
2021-03-30 01:45:10 +03:00
value:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":8}\"}"
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 8
2021-03-30 01:45:10 +03:00
- Assign:
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
2021-03-30 01:45:10 +03:00
value:
Binary:
left:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
2021-03-30 01:45:10 +03:00
right:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":6,\\\"hi\\\":7}\"}"
2021-03-30 01:45:10 +03:00
op: Add
span:
2022-05-03 21:48:48 +03:00
lo: 4
hi: 7
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 7
2021-03-30 01:45:10 +03:00
- Assign:
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":0,\\\"hi\\\":1}\"}"
2021-03-30 01:45:10 +03:00
value:
Call:
function:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
2021-03-30 01:45:10 +03:00
arguments: []
2022-09-21 08:05:49 +03:00
external: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 4
hi: 7
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 7