Skip to content

Commit

Permalink
chore: add semantic crate.
Browse files Browse the repository at this point in the history
  • Loading branch information
rzvxa committed Mar 9, 2024
1 parent d6397c4 commit ebca65f
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,14 @@ license = "MIT"
repository = "https://github.com/fuse-lang/fusec"

[workspace.dependencies]
# fuse = { version = "0.0.0", path = "crates/fuse" }
fuse = { version = "0.0.0", path = "crates/fuse" }
fuse_ast = { version = "0.0.0", path = "crates/fuse-ast" }
fuse_codegen = { version = "0.0.0", path = "crates/fuse-codegen" }
fuse_common = { version = "0.0.0", path = "crates/fuse-common" }
fuse_common_proc = { version = "0.0.0", path = "crates/fuse-common-proc" }
fuse_parser = { version = "0.0.0", path = "crates/fuse-parser" }
# fusec = { version = "0.0.0", path = "crates/fusec" }
fuse_semantic = { version = "0.0.0", path = "crates/fuse-semantic" }
fusec = { version = "0.0.0", path = "crates/fusec" }

thiserror = { version = "1.0" }
serde = { version = "1.0", features = ["derive"] }
Expand Down
12 changes: 12 additions & 0 deletions crates/fuse-semantic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[package]
name = "fuse_semantic"
version = "0.0.0"
description.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true

[dependencies]
fuse_ast = { workspace = true }
fuse_common = { workspace = true }
1 change: 1 addition & 0 deletions crates/fuse-semantic/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
pub fn semantic_analysis() {}
3 changes: 2 additions & 1 deletion crates/fusec/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
[package]
name = "fusec"
description = "The official compiler for the Fuse programming language."
version = "0.0.0"
description.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
edition.workspace = true

[dependencies]
fuse_parser = { workspace = true }
6 changes: 6 additions & 0 deletions crates/fusec/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
use fuse_parser::Parser;

fn compile_chunk(source: &str) {
let parsed_tree = Parser::new(source).parse();
todo!("Compiler isn't done yet!")
}
3 changes: 0 additions & 3 deletions crates/fusec/src/main.rs

This file was deleted.

0 comments on commit ebca65f

Please sign in to comment.