mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-10-01 12:39:37 +00:00
c77fd3a8a8245684820e0a4b510de8114a3ab17a
pork
A work-in-progress programming language.
/* fibonacci sequence */
func fib(n) {
if n == 0
then 0
else if n == 1
then 1
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%