Migrate assignee

This commit is contained in:
howardwu 2020-06-07 17:12:16 -07:00
parent eb5c3864a7
commit e08ec6f9e9
5 changed files with 17 additions and 0 deletions

17
ast/src/file.rs Normal file
View 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>,
}

View File

View File

0
ast/src/functions/mod.rs Normal file
View File

View File