-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Global const data works. Using Fir, Oir, Scir to do main compilation. Some lint refactoring was done to handle scopes better. Scopes and Type Tables will need a significant refactor
- Loading branch information
1 parent
a40bec7
commit 9501115
Showing
27 changed files
with
790 additions
and
404 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "datatable" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
cranelift-module = "0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
use cranelift_module::DataId; | ||
use std::collections::BTreeMap; | ||
|
||
pub struct DataTable { | ||
pub table: BTreeMap<String, DataId>, | ||
} | ||
|
||
impl DataTable { | ||
pub fn new() -> Self { | ||
DataTable { | ||
table: BTreeMap::new(), | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,20 @@ | ||
[package] | ||
name = "ir" | ||
name = "fir" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
ast = { path="../ast" } | ||
oir = { path="../oir" } | ||
symtable = { path="../symtable" } | ||
datatable = { path="../datatable" } | ||
typetable = { path="../typetable" } | ||
scopetable = { path="../scopetable" } | ||
token = { path="../token" } | ||
perror = { path="../perror" } | ||
lexer = { path="../lexer" } | ||
linter = { path="../linter" } | ||
types = { path="../types" } | ||
cranelift-frontend = "0" | ||
cranelift-codegen = "0" | ||
cranelift-module = "0" |
Oops, something went wrong.