Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 312 Bytes

README.md

File metadata and controls

25 lines (20 loc) · 312 Bytes

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'