mirror of
https://github.com/AleoHQ/leo.git
synced 2024-09-11 15:05:33 +03:00
Migrate assignee
This commit is contained in:
parent
eb5c3864a7
commit
e08ec6f9e9
17
ast/src/file.rs
Normal file
17
ast/src/file.rs
Normal file
@ -0,0 +1,17 @@
|
||||
use crate::{ast::Rule, common::Test, imports::Import, circuits::Circuit};
|
||||
|
||||
use pest::Span;
|
||||
use pest_ast::FromPest;
|
||||
use std::fmt;
|
||||
|
||||
#[derive(Clone, Debug, FromPest, PartialEq)]
|
||||
#[pest_ast(rule(Rule::file))]
|
||||
pub struct File<'ast> {
|
||||
pub imports: Vec<Import<'ast>>,
|
||||
pub circuits: Vec<Circuit<'ast>>,
|
||||
pub functions: Vec<Function<'ast>>,
|
||||
pub tests: Vec<Test<'ast>>,
|
||||
pub eoi: EOI,
|
||||
#[pest_ast(outer())]
|
||||
pub span: Span<'ast>,
|
||||
}
|
0
ast/src/functions/function.rs
Normal file
0
ast/src/functions/function.rs
Normal file
0
ast/src/functions/function_input.rs
Normal file
0
ast/src/functions/function_input.rs
Normal file
0
ast/src/functions/mod.rs
Normal file
0
ast/src/functions/mod.rs
Normal file
0
ast/src/functions/test_function.rs
Normal file
0
ast/src/functions/test_function.rs
Normal file
Loading…
Reference in New Issue
Block a user