Merge pull request #1817 from AleoHQ/abnf-scalar-type

[ABNF] Add scalar type.
This commit is contained in:
Collin Chin 2022-05-17 08:22:43 -07:00 committed by GitHub
commit 89aba7c0bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

Binary file not shown.

View File

@ -91,6 +91,7 @@ keyword = %s"address"
/ %s"let"
/ %s"public"
/ %s"return"
/ %s"scalar"
/ %s"u8"
/ %s"u16"
/ %s"u32"
@ -122,6 +123,8 @@ field-literal = numeral %s"field"
product-group-literal = numeral %s"group"
scalar-literal = numeral %s"scalar"
boolean-literal = %s"true" / %s"false"
address-literal = %s"aleo1" 58( lowercase-letter / decimal-digit )
@ -172,6 +175,7 @@ integer-literal = unsigned-literal
numeric-literal = integer-literal
/ field-literal
/ product-group-literal
/ scalar-literal
atomic-literal = numeric-literal
/ boolean-literal
@ -214,7 +218,9 @@ field-type = %s"field"
group-type = %s"group"
arithmetic-type = integer-type / field-type / group-type
scalar-type = %s"scalar"
arithmetic-type = integer-type / field-type / group-type / scalar-type
boolean-type = %s"bool"