mirror of
https://github.com/GayPizzaSpecifications/pork.git
synced 2025-09-18 16:41:30 +00:00
a07e0fe672331f58bfccb03b06418bbbd150da28
* language: add boolean and/or operators, change negation syntax * examples: simplify row builder using arrays
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%