Skip to content

Instantly share code, notes, and snippets.

@i-e-b
Last active August 24, 2022 08:37
Show Gist options
  • Save i-e-b/8d42b45f5d09f20ca8a48a82ffaadf03 to your computer and use it in GitHub Desktop.
Save i-e-b/8d42b45f5d09f20ca8a48a82ffaadf03 to your computer and use it in GitHub Desktop.
Thinking out loud
// 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