-
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.
- Loading branch information
1 parent
24ce888
commit f452593
Showing
25 changed files
with
150 additions
and
59 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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,9 @@ | ||
{ | ||
"types": { | ||
"aliases": "aliases", | ||
"cssclasses": "multitext", | ||
"tags": "tags", | ||
"Created": "date", | ||
"Updated": "date" | ||
} | ||
} |
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 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,2 +1,2 @@ | ||
[[Compilation]] | ||
[[Parsing]] | ||
[[Implementation]] | ||
[[Usage]] |
File renamed without changes.
File renamed without changes.
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 @@ | ||
[[Function Compilation]] | ||
[[Name Resolution]] | ||
[[Shared]] | ||
|
||
## Phases | ||
1. [[Name Resolution]] | ||
2. [[Function Compilation]] |
File renamed without changes.
Empty file.
4 changes: 4 additions & 0 deletions
4
docs/Docs/Compilation/Shared/Function ID.md → ...tion/3. Compilation/Shared/Function ID.md
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,3 +1,7 @@ | ||
--- | ||
Created: 2024-08-30 | ||
Updated: 2024-08-30 | ||
--- | ||
Unique `isize` representing a type. A negative number is a builtin type, positive is user-defined. Similar to [[Type ID]] | ||
|
||
Looking to be changed in [[Type Parameters and Arrays]] |
File renamed without changes.
5 changes: 5 additions & 0 deletions
5
docs/Docs/Compilation/Shared/Type ID.md → ...entation/3. Compilation/Shared/Type ID.md
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,3 +1,8 @@ | ||
--- | ||
Created: 2024-08-30 | ||
Updated: 2024-08-30 | ||
--- | ||
|
||
Unique `isize` representing a type. A negative number is a builtin type, positive is user-defined. Similar to [[Function ID]] | ||
|
||
Looking to be changed in [[Type Parameters and Arrays]] |
Empty file.
Empty file.
Empty file.
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,6 @@ | ||
[[1. Argument Parsing]] | ||
[[2. Parsing]] | ||
[[3. Compilation]] | ||
[[4. Assembling]] | ||
[[5. Linking]] | ||
[[6. Execution]] |
Empty file.
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,4 @@ | ||
--- | ||
tags: | ||
- Planning | ||
--- |
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,5 @@ | ||
--- | ||
tags: | ||
- Planning | ||
--- | ||
|
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,3 +1,7 @@ | ||
--- | ||
tags: | ||
- Planning | ||
--- | ||
## [[TODO]] | ||
## Next | ||
- Improve type system - [[Type Parameters and Arrays]] | ||
|
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,5 +1,44 @@ | ||
use std::marker::PhantomData; | ||
use crate::root::errors::WErr; | ||
|
||
mod root; | ||
|
||
fn main() { | ||
root::main(); | ||
} | ||
|
||
|
||
// trait ProcessInto<P, R> { | ||
// fn process(self, requirements: R) -> Result<P, WErr>; | ||
// } | ||
// | ||
// enum MaybeProcessed<U, P, R> where U: ProcessInto<P, R> { | ||
// Unprocessed(U, PhantomData<R>), | ||
// Processed(P) | ||
// } | ||
// | ||
// impl<U, P, R> MaybeProcessed<U, P, R> where U: ProcessInto<P, R> { | ||
// pub fn get_processed(self, requirements: R) -> Result<P, WErr> { | ||
// match self { | ||
// MaybeProcessed::Unprocessed(u, _) => { | ||
// u.process(requirements) | ||
// } | ||
// MaybeProcessed::Processed(p) => p | ||
// } | ||
// } | ||
// | ||
// pub fn get_processed_inplace(&mut self, requirements: R) -> Result<&mut P, WErr> { | ||
// match self { | ||
// MaybeProcessed::Unprocessed(u, _) => { | ||
// *self = MaybeProcessed::Processed( | ||
// u. | ||
// ); | ||
// | ||
// () | ||
// } | ||
// MaybeProcessed::Processed(_) => { | ||
// () | ||
// } | ||
// } | ||
// } | ||
// } |