Pork Language
Go to file
2023-08-30 03:15:13 -07:00
.github/workflows Initial Commit 2023-08-19 15:34:10 -07:00
examples String literal support. 2023-08-22 21:58:56 -07:00
gradle/wrapper Initial Commit 2023-08-19 15:34:10 -07:00
src/main/kotlin/gay/pizza/pork Cleanup parser and extract common logic. 2023-08-30 03:15:13 -07:00
.gitignore Initial Commit 2023-08-19 15:34:10 -07:00
build.gradle.kts Implement AST serialization. 2023-08-21 23:31:40 -07:00
gradlew Initial Commit 2023-08-19 15:34:10 -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 An actual command line tool to run pork programs. 2023-08-21 23:08:56 -07:00
settings.gradle.kts Initial Commit 2023-08-19 15:34:10 -07:00

pork

A small BBQ language.

Very WIP. Like VERY.

/* fibonacci sequence */
fib = { n in
  if n == 0
    then 0
  else if n == 1
    then 1
  else fib(n - 1) + fib(n - 2)
}

result = fib(20)
println(result)

Usage

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