cl-ast: Move AST definition into its own crate

This commit is contained in:
2024-02-29 19:49:50 -06:00
parent 6e1d5af134
commit 1afde9ce35
15 changed files with 29 additions and 19 deletions

View File

@@ -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"

View File

@@ -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>);
}

View File

@@ -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},