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

88 lines
1.9 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:
- Block:
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 2
2021-03-30 01:45:10 +03:00
- Block:
statements:
- Return:
expression:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2022-03-28 20:35:36 +03:00
- "0"
- span:
2022-05-03 21:48:48 +03:00
lo: 9
hi: 12
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 2
hi: 12
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 15
2021-03-30 01:45:10 +03:00
- Block:
statements:
- Block:
statements: []
span:
2022-05-03 21:48:48 +03:00
lo: 1
hi: 3
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 4
2021-03-30 01:45:10 +03:00
- Block:
statements:
- Block:
statements:
- Return:
expression:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2022-03-28 20:35:36 +03:00
- "0"
- span:
2022-05-03 21:48:48 +03:00
lo: 11
hi: 14
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 4
hi: 14
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 2
hi: 17
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 19
2021-03-30 01:45:10 +03:00
- Block:
statements:
- Conditional:
condition:
2022-05-03 21:48:48 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":5,\\\"hi\\\":6}\"}"
then:
2021-03-30 01:45:10 +03:00
statements:
- Return:
expression:
2022-06-12 07:10:08 +03:00
Literal:
2022-08-10 02:14:05 +03:00
Integer:
- U8
2022-03-28 20:35:36 +03:00
- "0"
- span:
2022-05-03 21:48:48 +03:00
lo: 16
hi: 19
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 9
hi: 19
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 7
hi: 22
otherwise: ~
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 2
hi: 22
2021-03-30 01:45:10 +03:00
span:
2022-05-03 21:48:48 +03:00
lo: 0
hi: 24