diff --git a/README.md b/README.md index a975dfc..4e8cac4 100644 --- a/README.md +++ b/README.md @@ -83,15 +83,13 @@ Here's a flexible outline for the upcoming feature milestones. On each review da | --- | :---: | :---: | | [Arrays & Tables](https://github.com/Ratstail91/Toy/issues/155) | - | 1st Jan ✅ | | [Control Flow](https://github.com/Ratstail91/Toy/issues/152) | 2 weeks | 15th Jan ✅ | -| Functions* | ~~2 weeks~~ | ~~29th Jan~~ | -| [Functions](https://github.com/Ratstail91/Toy/issues/163)** | 2 weeks | 12th Feb | -| [Dot Operator & Slices](https://github.com/Ratstail91/Toy/issues/156) | 2 weeks | 26th Feb | -| [Native Libraries](https://github.com/Ratstail91/Toy/issues/165) | 2 weeks | 12th Mar | -| [Standard Libraries](https://github.com/Ratstail91/Toy/issues/164) | 2 weeks | 26th Mar | +| [Functions](https://github.com/Ratstail91/Toy/issues/163) | 6 weeks* | 26th Feb | +| [Dot Operator & Slices](https://github.com/Ratstail91/Toy/issues/156) | 2 weeks | 12th Mar | +| [Native Libraries](https://github.com/Ratstail91/Toy/issues/165) | 2 weeks | 26th Mar | +| [Standard Libraries](https://github.com/Ratstail91/Toy/issues/164) | 2 weeks | 9th Apr | | [Documentation](https://github.com/Ratstail91/Toy/issues/169) | - | - | *Info about and strategies for missed milestones can be found on [my blog here](https://krgamestudios.com/posts/2025-01-29-missed-by-a-mile). -**I'm late, I'm late, for a very important date! # Building @@ -105,7 +103,7 @@ To build and run the test suites, run `make tests` (`make tests-gdb` and `make t # Tools -*Coming Soon - I want the features mostly working first.* +*Coming Soon - I want the main features mostly working first.* # Documentation diff --git a/scripts/advent_1a.toy b/scripts/advent_1a.toy index f70e7ed..3ea4e40 100644 --- a/scripts/advent_1a.toy +++ b/scripts/advent_1a.toy @@ -1,11 +1,13 @@ +//TODO: Not yet functional + //advent of code thingy var arr = [ - 3, 4, - 4, 3, - 2, 5, - 1, 3, - 3, 9, - 3 , 3 + 3, 4, + 4, 3, + 2, 5, + 1, 3, + 3, 9, + 3, 3, ]; var total = 0; diff --git a/scripts/benchpress.toy b/scripts/benchpress.toy index e1714b1..619c6d8 100644 --- a/scripts/benchpress.toy +++ b/scripts/benchpress.toy @@ -1,17 +1,17 @@ //calculate the nth fibonacci number, and print it -//can't use functions yet var counter: int = 0; var first: int = 1; var second: int = 0; +//This causes integer overflow, but that's fine for now while (counter < 100_000) { - var third: int = first + second; - first = second; - second = third; + var third: int = first + second; + first = second; + second = third; - print third; + print third; - ++counter; + ++counter; } \ No newline at end of file diff --git a/scripts/fib.toy b/scripts/fib.toy index 7d50b49..96c93f1 100644 --- a/scripts/fib.toy +++ b/scripts/fib.toy @@ -1,4 +1,4 @@ -//TODO: functions don't work yet +//TODO: Not yet functional //example of the fibonacci sequence fn fib(n: int) { @@ -11,4 +11,5 @@ for (var i = 1; i <= 10; i++) { print i .. ":" .. fib(i); } -//Note to self: yes, the base case in 'fib()' is 'n < 2', stop second guessing yourself! +//Note to my future self: yes, the base case in 'fib()' is 'n < 2', stop second guessing yourself! +//Note to my past self: don't tell me what to do! \ No newline at end of file diff --git a/scripts/funky.toy b/scripts/funky.toy index e8f74b5..5b41ee4 100644 --- a/scripts/funky.toy +++ b/scripts/funky.toy @@ -24,6 +24,7 @@ output(name); */ +//TODO: Not yet functional fn makeCounter() { var counter: int = 0; diff --git a/scripts/leapyear.toy b/scripts/leapyear.toy index 48bcdc6..812f831 100644 --- a/scripts/leapyear.toy +++ b/scripts/leapyear.toy @@ -1,4 +1,4 @@ -//TODO: functions don't work yet +//TODO: Not yet functional //find the leap years fn isLeapYear(n: int) { diff --git a/scripts/valgrind.toy b/scripts/valgrind.toy deleted file mode 100644 index 2720ffa..0000000 --- a/scripts/valgrind.toy +++ /dev/null @@ -1,8 +0,0 @@ - - - -var answer = 42; - -var question: string = "How many roads must a man walk down?"; - -print question; \ No newline at end of file diff --git a/scripts/yuki.toy b/scripts/yuki.toy deleted file mode 100644 index 080deee..0000000 --- a/scripts/yuki.toy +++ /dev/null @@ -1,11 +0,0 @@ -var loops = 0; - -while (true) { - if (++loops < 15532) { - continue; - } - - break; -} - -assert loops == 15532, "Yuki loop failed (break + continue)";