leo/tests/parser/expression/cast.leo.out

187 lines
6.1 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:
- Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x as u8\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type:
IntegerType: U8
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x as u8
- Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"y as id\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type:
2021-04-06 16:57:46 +03:00
Circuit: "{\"name\":\"id\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":8,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"y as id\\\"}\"}"
2021-03-30 01:45:10 +03:00
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: y as id
- Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"z as u32\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type:
IntegerType: U32
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 9
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: z as u32
- Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x as i128\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type:
IntegerType: I128
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x as i128
- Cast:
inner:
Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x as u8 as u128\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type:
IntegerType: U8
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 8
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x as u8 as u128
target_type:
IntegerType: U128
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 16
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x as u8 as u128
- Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x as field\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type: Field
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 11
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x as field
- Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x as group\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type: Group
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 11
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x as group
- Binary:
left:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":1,\\\"col_stop\\\":2,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x ** y as u32 ** z\\\"}\"}"
2021-03-30 01:45:10 +03:00
right:
Binary:
left:
Cast:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":6,\\\"col_stop\\\":7,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x ** y as u32 ** z\\\"}\"}"
2021-03-30 01:45:10 +03:00
target_type:
IntegerType: U32
span:
line_start: 1
line_stop: 1
col_start: 6
col_stop: 14
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x ** y as u32 ** z
right:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"z\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":18,\\\"col_stop\\\":19,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"x ** y as u32 ** z\\\"}\"}"
2021-03-30 01:45:10 +03:00
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 6
col_stop: 19
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x ** y as u32 ** z
op: Pow
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 19
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: x ** y as u32 ** z
- Value:
Implicit:
- ""
- line_start: 0
line_stop: 0
col_start: 0
col_stop: 0
path: ""
content: ""
- Cast:
inner:
Unary:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":2,\\\"col_stop\\\":3,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"!x as u32\\\"}\"}"
2021-03-30 01:45:10 +03:00
op: Not
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 3
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: "!x as u32"
target_type:
IntegerType: U32
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: "!x as u32"
- Cast:
inner:
Unary:
inner:
2021-04-06 16:57:46 +03:00
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"line_start\\\":1,\\\"line_stop\\\":1,\\\"col_start\\\":2,\\\"col_stop\\\":3,\\\"path\\\":\\\"cast.leo\\\",\\\"content\\\":\\\"-x as u32\\\"}\"}"
2021-03-30 01:45:10 +03:00
op: Negate
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 3
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: "-x as u32"
target_type:
IntegerType: U32
span:
line_start: 1
line_stop: 1
col_start: 1
col_stop: 10
2021-04-06 16:57:46 +03:00
path: cast.leo
2021-03-30 01:45:10 +03:00
content: "-x as u32"