mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-10-06 14:29:39 +00:00
cdcbdb2bdf3f1e95d34080e45fc2c97ace419dd2
- unary binary not - infix bitwise and - infix bitwise or - infix bitwise exclusive or (xor)
pork
A work-in-progress programming language.
/* fibonacci sequence */
func fib(n) {
if n < 2 {
n
} else {
fib(n - 1) + fib(n - 2)
}
}
func main() {
let result = fib(20)
println(result)
}
Usage
./gradlew -q tool:run --args 'run ../examples/fib.pork'
Languages
Kotlin
100%