mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-18 23:02:35 +03:00
update abnf
This commit is contained in:
parent
c10eb63575
commit
f34f63cea4
@ -216,7 +216,7 @@ address-type = %s"address"
|
||||
|
||||
primitive-type = boolean-type / arithmetic-type / address-type
|
||||
|
||||
type = primitive-type
|
||||
type = primitive-type / identifier
|
||||
|
||||
group-coordinate = ( [ "-" ] numeral ) / "+" / "-" / "_"
|
||||
|
||||
@ -355,7 +355,7 @@ format-string = *format-string-element
|
||||
; Input Grammar
|
||||
; -------------
|
||||
|
||||
input-type = type
|
||||
input-type = primitive-type
|
||||
|
||||
input-expression = literal
|
||||
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372003]: Unknown variable `b`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = b;\n | ^\n"
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372012]: The function main has no return statement.\n --> compiler-test:3:1\n |\n 3 | function main() -> u8 {}\n | ^^^^^^^^^^^^^^^^^^^^^^^^\n"
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372003]: Unknown variable `z`\n --> compiler-test:4:19\n |\n 4 | \tlet b: u8 = 1u8**z;\n | ^\n"
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
namespace: Compile
|
||||
expectation: Fail
|
||||
outputs:
|
||||
- "Error [ETYC0372003]: Unknown variable `x`\n --> compiler-test:4:14\n |\n 4 | \tlet b: u8 = x*z;\n | ^\nError [ETYC0372003]: Unknown variable `z`\n --> compiler-test:4:16\n |\n 4 | \tlet b: u8 = x*z;\n | ^\n"
|
Loading…
Reference in New Issue
Block a user