From 70623ecd4a796cde6607bb81f9a0ac29bdf00c7e Mon Sep 17 00:00:00 2001 From: "Tristan B. Kildaire" Date: Sun, 6 Jun 2021 15:54:15 +0200 Subject: [PATCH] Check off things already implemented Update test case to test them --- source/tlang/testing/basic1_typedeclrationchecking.t | 5 +++++ todo1.md | 9 +++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/source/tlang/testing/basic1_typedeclrationchecking.t b/source/tlang/testing/basic1_typedeclrationchecking.t index 1ac0d239..55636002 100644 --- a/source/tlang/testing/basic1_typedeclrationchecking.t +++ b/source/tlang/testing/basic1_typedeclrationchecking.t @@ -41,6 +41,11 @@ struct structTest public int k1; static int k2; public static int k3; + + public int g() + { + + } } class Shekshi diff --git a/todo1.md b/todo1.md index 0d925766..8f684aab 100644 --- a/todo1.md +++ b/todo1.md @@ -2,14 +2,15 @@ TODO: Holidays (1-10th May) =========================== - [ ] `parseStruct` - - [ ] Actually parse body - - [ ] Only allow variables declarations + - [x] Actually parse body + - [x] Only allow variables declarations - [ ] Allow assignments I guess - - [ ] Maybe function definitions too (D-kinda thing) + - [x] Maybe function definitions too (D-kinda thing) - [ ] Add constructor support (initializes values) - [ ] I guess this is nicer when you have functions in the struct too to make initialization code more modular - - [ ] Allow nested structs + - ~~[ ] Allow nested structs~~ + * Removed, why? That would be weird? - [ ] Note to self, `parseClass` and `parseStruct` should be way more specific and not just call `parseBody` - As currently one can then use `static` outside of these contexts - [x] `parseStruct`