Functions are WIP, read more

They're no-ops in compilation for now, and param types aren't parsed.

'return' keyword needs to be implemented.

Was distracted by bugfixes in v2 and v2-docs.
This commit is contained in:
2025-02-02 17:26:47 +11:00
parent 336616a1bf
commit b93ea5006c
6 changed files with 76 additions and 9 deletions

13
scripts/funky.toy Normal file
View File

@@ -0,0 +1,13 @@
fn name(param1, param2) {
//return 42;
}
/*
fn name(param1: int, param2: float) {
return 42;
}
*/