mirror of
https://github.com/ProvableHQ/leo.git
synced 2024-12-24 18:52:58 +03:00
add comma to circuit member field def
This commit is contained in:
parent
b8292e3fd9
commit
457a1b26bc
@ -183,13 +183,13 @@ circuit = { "circuit " ~ identifier ~ "{" ~ NEWLINE* ~ circuit_member* ~ NEWLINE
|
|||||||
circuit_field = { identifier ~ ":" ~ expression }
|
circuit_field = { identifier ~ ":" ~ expression }
|
||||||
|
|
||||||
// Declared in circuits/circuit_field_definition.rs
|
// Declared in circuits/circuit_field_definition.rs
|
||||||
circuit_field_definition = { identifier ~ ":" ~ type_ ~ NEWLINE* }
|
circuit_field_definition = { identifier ~ ":" ~ type_ ~ ","?}
|
||||||
|
|
||||||
// Declared in circuits/circuit_function.rs
|
// Declared in circuits/circuit_function.rs
|
||||||
circuit_function = { static_? ~ function_definition }
|
circuit_function = { static_? ~ function_definition }
|
||||||
|
|
||||||
// Declared in circuits/circuit_member.rs
|
// Declared in circuits/circuit_member.rs
|
||||||
circuit_member = { circuit_function | circuit_field_definition }
|
circuit_member = { circuit_function | circuit_field_definition ~ NEWLINE*}
|
||||||
|
|
||||||
/// Conditionals
|
/// Conditionals
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
circuit Circ {
|
circuit Circ {
|
||||||
x: u32
|
x: u32,
|
||||||
}
|
}
|
||||||
|
|
||||||
function main() -> u32 {
|
function main() -> u32 {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
circuit Foo {
|
circuit Foo {
|
||||||
foo: u32
|
foo: u32,
|
||||||
|
|
||||||
static function bar() -> u32 {
|
static function bar() -> u32 {
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user