mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Parameter lists are read manually, rather than delegating to parsePrecedence, because that was causing issues. function bodies are read as block-level statements, just like the entire files.
17 lines
159 B
Plaintext
17 lines
159 B
Plaintext
|
|
|
|
fn name() {
|
|
//return 42;
|
|
}
|
|
|
|
|
|
|
|
|
|
fn name(param1: int, param2: float, param3: string, param4) {
|
|
//return 42;
|
|
}
|
|
|
|
|
|
fn name(foobar: bool const) {
|
|
//return 42;
|
|
} |