Skip to content

GayPizzaSpecifications/pork

Repository files navigation

pork

A work-in-progress programming language.

/* fibonacci sequence */
func fib(n) {
  return if n < 2 {
    n
  } else {
    fib(n - 1) + fib(n - 2)
  }
}

export func main() {
  let result = fib(20)
  println(result)
}

Usage

./gradlew -q tool:run --args 'run ../examples/fib.pork'

Releases

No releases published

Packages

No packages published

Languages