mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-09-17 00:11:31 +00:00
aadc8282a57b8598a1865187a6815f0da544de1f
Co-authored-by: Violet White <violet.white.dammit@protonmail.com> Co-authored-by: Violet White <violet.white@espeon.social>
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%