leo/tests/expectations/parser/statement/definition.out
d0cd 0522c2a08f
Removes unused or deprecated keywords from the grammar. (#2273)
* Remove unused/deprecated symbols

* Remove tokens

* Update parser

* Update tests

* Regen expectations
2023-02-17 19:25:11 -08:00

232 lines
6.0 KiB
Plaintext

---
namespace: ParseStatement
expectation: Pass
outputs:
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U8
value:
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}"
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U16
value:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}"
op: Add
span:
lo: 13
hi: 16
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U8
value:
Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}"
arguments: []
external: ~
span:
lo: 12
hi: 15
span:
lo: 0
hi: 15
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_: String
value:
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":20}\"}"
span:
lo: 0
hi: 20
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: I8
value:
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":16}\"}"
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: I16
value:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}"
op: Add
span:
lo: 13
hi: 16
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: I8
value:
Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":12,\\\"hi\\\":13}\"}"
arguments: []
external: ~
span:
lo: 12
hi: 15
span:
lo: 0
hi: 15
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_: String
value:
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":16,\\\"hi\\\":20}\"}"
span:
lo: 0
hi: 20
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U32
value:
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":17}\"}"
span:
lo: 0
hi: 17
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U32
value:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}"
op: Add
span:
lo: 13
hi: 16
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U32
value:
Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
arguments: []
external: ~
span:
lo: 13
hi: 16
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U32
value:
Identifier: "{\"name\":\"expr\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":17}\"}"
span:
lo: 0
hi: 17
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U32
value:
Binary:
left:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
right:
Identifier: "{\"name\":\"y\",\"span\":\"{\\\"lo\\\":15,\\\"hi\\\":16}\"}"
op: Add
span:
lo: 13
hi: 16
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_:
Integer: U32
value:
Call:
function:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":13,\\\"hi\\\":14}\"}"
arguments: []
external: ~
span:
lo: 13
hi: 16
span:
lo: 0
hi: 16
- Definition:
declaration_type: Let
place:
Identifier: "{\"name\":\"x\",\"span\":\"{\\\"lo\\\":4,\\\"hi\\\":5}\"}"
type_: Address
value:
Literal:
Address:
- aleo1fj982yqchhy973kz7e9jk6er7t6qd6jm9anplnlprem507w6lv9spwvfxx
- span:
lo: 17
hi: 80
span:
lo: 0
hi: 80