Skip to content

Commit ebca65f

Browse files
committed
chore: add semantic crate.
1 parent d6397c4 commit ebca65f

File tree

6 files changed

+24
-6
lines changed

6 files changed

+24
-6
lines changed

Cargo.toml

+3-2
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,14 @@ license = "MIT"
1111
repository = "https://github.com/fuse-lang/fusec"
1212

1313
[workspace.dependencies]
14-
# fuse = { version = "0.0.0", path = "crates/fuse" }
14+
fuse = { version = "0.0.0", path = "crates/fuse" }
1515
fuse_ast = { version = "0.0.0", path = "crates/fuse-ast" }
1616
fuse_codegen = { version = "0.0.0", path = "crates/fuse-codegen" }
1717
fuse_common = { version = "0.0.0", path = "crates/fuse-common" }
1818
fuse_common_proc = { version = "0.0.0", path = "crates/fuse-common-proc" }
1919
fuse_parser = { version = "0.0.0", path = "crates/fuse-parser" }
20-
# fusec = { version = "0.0.0", path = "crates/fusec" }
20+
fuse_semantic = { version = "0.0.0", path = "crates/fuse-semantic" }
21+
fusec = { version = "0.0.0", path = "crates/fusec" }
2122

2223
thiserror = { version = "1.0" }
2324
serde = { version = "1.0", features = ["derive"] }

crates/fuse-semantic/Cargo.toml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[package]
2+
name = "fuse_semantic"
3+
version = "0.0.0"
4+
description.workspace = true
5+
authors.workspace = true
6+
license.workspace = true
7+
repository.workspace = true
8+
edition.workspace = true
9+
10+
[dependencies]
11+
fuse_ast = { workspace = true }
12+
fuse_common = { workspace = true }

crates/fuse-semantic/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pub fn semantic_analysis() {}

crates/fusec/Cargo.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
[package]
22
name = "fusec"
3+
description = "The official compiler for the Fuse programming language."
34
version = "0.0.0"
4-
description.workspace = true
55
authors.workspace = true
66
license.workspace = true
77
repository.workspace = true
88
edition.workspace = true
99

1010
[dependencies]
11+
fuse_parser = { workspace = true }

crates/fusec/src/lib.rs

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
use fuse_parser::Parser;
2+
3+
fn compile_chunk(source: &str) {
4+
let parsed_tree = Parser::new(source).parse();
5+
todo!("Compiler isn't done yet!")
6+
}

crates/fusec/src/main.rs

-3
This file was deleted.

0 commit comments

Comments
 (0)