diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 6791492..5e1788a 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -7,9 +7,9 @@ - - - + + + @@ -633,7 +633,6 @@ - @@ -658,7 +657,8 @@ - diff --git a/main.why b/main.why index 69102af..b03f42a 100644 --- a/main.why +++ b/main.why @@ -8,6 +8,11 @@ struct StructB { b: int } +impl StructA { + fn test(self) { + + } +} fn main() -> int { let y: int = 13; @@ -20,6 +25,8 @@ fn main() -> int { } }; + x.test(); + &y = x.b.a; return y; diff --git a/src/root/compiler/evaluation/new.rs b/src/root/compiler/evaluation/new.rs index 307738e..f839c1d 100644 --- a/src/root/compiler/evaluation/new.rs +++ b/src/root/compiler/evaluation/new.rs @@ -26,7 +26,6 @@ pub fn compile_evaluable_new( global_table: &mut GlobalDefinitionTable, global_tracker: &mut GlobalTracker ) -> Result<(String, Option), WErr> { - let ets = et.token(); Ok(match ets { diff --git a/todo.md b/todo.md index 7ea3625..4fd3a28 100644 --- a/todo.md +++ b/todo.md @@ -1,9 +1,7 @@ -- Add support for struct.attribute - Add support for struct.function() -- Add support for struct.staticFunction() +- Add support for struct::staticFunction() - Add array support - Add rich parser errors - Add support for multiple files - Add support for heap stuff -x.a; \ No newline at end of file