cl-ast: Move AST definition into its own crate
This commit is contained in:
@@ -11,6 +11,7 @@ publish.workspace = true
|
||||
|
||||
[dependencies]
|
||||
conlang = { path = "../libconlang" }
|
||||
cl-ast = { path = "../cl-ast" }
|
||||
cl-interpret = { path = "../cl-interpret" }
|
||||
cl-token = { path = "../cl-token" }
|
||||
crossterm = "0.27.0"
|
||||
|
||||
@@ -125,7 +125,7 @@ use collectible::Collectible;
|
||||
pub mod collectible {
|
||||
|
||||
use super::Collector;
|
||||
use conlang::ast::*;
|
||||
use cl_ast::*;
|
||||
pub trait Collectible<'code> {
|
||||
fn collect(&'code self, c: &mut Collector<'code>);
|
||||
}
|
||||
|
||||
@@ -72,8 +72,9 @@ pub mod program {
|
||||
use cl_interpret::{
|
||||
env::Environment, error::IResult, interpret::Interpret, temp_type_impl::ConValue,
|
||||
};
|
||||
|
||||
use cl_ast::{self as ast, ast_impl::format::Pretty};
|
||||
use conlang::{
|
||||
ast::{self, ast_impl::format::Pretty},
|
||||
// pretty_printer::{PrettyPrintable, Printer},
|
||||
lexer::Lexer,
|
||||
parser::{error::PResult, Parser},
|
||||
|
||||
Reference in New Issue
Block a user