Pork Language
Go to file
2023-10-14 03:28:07 -07:00
.github/workflows minimal: pork-rt minimal runtime 2023-09-11 02:39:38 -04:00
ast pork: it's got it all, ffi, state machine tokenizer, and better IDE support 2023-10-13 01:04:35 -07:00
buildext parser: various code and quality enhancements 2023-10-08 04:46:23 -07:00
common parser: various code and quality enhancements 2023-10-08 04:46:23 -07:00
evaluator pork: it's got it all, ffi, state machine tokenizer, and better IDE support 2023-10-13 01:04:35 -07:00
examples parser: lazy support 2023-10-14 03:28:07 -07:00
ffi pork: it's got it all, ffi, state machine tokenizer, and better IDE support 2023-10-13 01:04:35 -07:00
frontend parser: lazy support 2023-10-14 03:28:07 -07:00
gradle/wrapper gradle: 8.4 and parser: lazy tokenization 2023-10-13 08:56:04 -07:00
minimal parser: lazy support 2023-10-14 03:28:07 -07:00
parser parser: lazy support 2023-10-14 03:28:07 -07:00
stdlib pork: it's got it all, ffi, state machine tokenizer, and better IDE support 2023-10-13 01:04:35 -07:00
support/pork-idea parser: lazy support 2023-10-14 03:28:07 -07:00
tool parser: lazy support 2023-10-14 03:28:07 -07:00
.editorconfig repository: add editorconfig dotfile (#5) 2023-09-11 00:33:51 -04:00
.gitignore ast: generate graph 2023-09-10 02:34:02 -04:00
build.gradle.kts gradle: 8.4 and parser: lazy tokenization 2023-10-13 08:56:04 -07:00
gradle.properties gradle: make build faster 2023-09-20 14:43:27 -07:00
gradlew gradle: 8.4 and parser: lazy tokenization 2023-10-13 08:56:04 -07:00
gradlew.bat Initial Commit 2023-08-19 15:34:10 -07:00
LICENSE Initial Commit 2023-08-19 15:34:10 -07:00
README.md readme: fix missing export for main 2023-09-23 15:55:42 -07:00
settings.gradle.kts minimal: pork-rt minimal runtime 2023-09-11 02:39:38 -04:00

pork

A work-in-progress programming language.

/* fibonacci sequence */
func fib(n) {
  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'