Last active
August 24, 2022 08:37
-
-
Save i-e-b/8d42b45f5d09f20ca8a48a82ffaadf03 to your computer and use it in GitHub Desktop.
Thinking out loud
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// No keywords? | |
my.thing { // a namespace | |
// proc head | |
procname => | |
inParam1 <- (u8) // a byte list | |
inParam2 <- "" // a string | |
{ | |
// proc body | |
i := [0..inParam1] // iterator | |
i <- { // for loop | |
funcName(i):(v1,v2) | |
//. . . | |
} | |
} | |
// function def | |
funcName => | |
inp1 <- i32 // 4 byte signed int | |
outp1 -> "" // string | |
outp2 -> f64 // 8 byte float | |
{ | |
outp2 := inp1 * 0.251 | |
outp1 := "hello, ${inp1}" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment