Replaced all the *Box with a generic LocBox<T>
This commit is contained in:
@@ -2,6 +2,7 @@ use std::collections::HashMap;
|
||||
|
||||
use statement::{Enum, Function, Struct, TypeAlias};
|
||||
|
||||
use crate::common::loc::LocBox;
|
||||
pub use crate::tokeniser::tokentype::*;
|
||||
|
||||
pub mod expr;
|
||||
@@ -21,8 +22,8 @@ pub struct Program {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub enum Ast {
|
||||
Expr(expr::ExprBox),
|
||||
Statement(statement::StatementBox),
|
||||
Expr(LocBox<expr::Expr>),
|
||||
Statement(LocBox<statement::Statement>),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user