Ast: export objects as public

This commit is contained in:
Akemi Izuko 2023-11-17 14:49:43 -07:00
parent d70d12ea1f
commit 83562d4654
Signed by: akemi
GPG key ID: 8DE0764E1809E9FC

View file

@ -1,18 +1,19 @@
use std::fmt;
mod expr; mod expr;
mod statement; mod statement;
use std::fmt; pub use expr::Expr;
pub use expr::Literal;
pub use expr::Variable;
pub use expr::VariableBuilder;
pub use expr::BinaryOperator;
use expr::{ pub use statement::Stat;
Expr, pub use statement::Block;
Literal, pub use statement::GlobalBlock;
Variable, pub use statement::Declaration;
BinaryOperator, pub use statement::DeclarationBuilder;
};
use statement::Stat;
use statement::Block;
use statement::GlobalBlock;
pub trait GazType { pub trait GazType {
fn get_base(&self) -> BaseType; fn get_base(&self) -> BaseType;