Skip to content

Commit

Permalink
Updated todo.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-M-Lucas committed Aug 7, 2024
1 parent a9bb4d2 commit 69b5e32
Show file tree
Hide file tree
Showing 6 changed files with 305 additions and 5 deletions.
Binary file not shown.
Binary file not shown.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/root/parser/path_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,13 @@ pub struct PathStorage {
}

impl PathStorage {
pub fn new(base: &str) -> Result<PathStorage, WErr> {
pub fn new(main: &str) -> Result<PathStorage, WErr> {
// TODO: Only allow certain characters in base
let mut folders = vec![CodeFolder::root()];
let mut files = Vec::new();

let mut current = FolderID(0);
for (is_last, section) in base.split('/').identify_last() {
for (is_last, section) in main.split('/').identify_last() {
if is_last {
files.push(CodeFile {
parent: current,
Expand Down
8 changes: 5 additions & 3 deletions todo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@

- Add support for .. in imports
- Add support for preceding / in import path to use absolute (relative to main.why) path
- Namespacing

- Add array support
- Move all Type name -> TypeRef resolution to pre-evaluation
- Add proper size evaluation in GlobalDefinitionsTable for array types
Expand All @@ -7,6 +11,4 @@
- Add support for parsing array literals
- Add evaluation support for array literals

- Check for circular imports
- Restrict characters usable in path
- Namespacing

0 comments on commit 69b5e32

Please sign in to comment.