Skip to content

A rockstar (https://github.com/RockstarLang/rockstar) parser/interpreter/transpiler written in Kotlin

License

Notifications You must be signed in to change notification settings

ascheja/rokkstar

Repository files navigation

Build Status

Rokkstar

This is a WIP parser and interpreter for the rockstar programming language, written in Kotlin.

Project layout

  • ast: abstract syntax tree classes
  • typesystem: logic rockstar's dynamic types
  • parser (uses ast): parser (and lexer) for building up an AST from source code
  • interpreter (uses ast and typesystem): interpreter that traverses the AST

Using the runner via gradle

# starts the api on port 8080 (`Listen to ...` will always receive empty strings)
./gradlew run --args='api 8080'

# launches the interpreter on the given file (Will not work with `Listen to ...`, you have to run it manually in that case)
./gradlew run --args='run <file>'

Starting the api in a docker container

# start the api on port 8080
docker run --rm -p 8080:8080 ascheja/rokkstar api 8080

Plans for the future

  • Add more tests, enable github-ci
  • Add position tracking for tokens
  • Improve error handling in Parser (try to recover from exceptions)
  • Rockstar plugin for IntelliJ IDEA
  • Provide a Docker image
  • Make Rokkstar runnable on all Kotlin platforms (jvm, javascript, kotlin-native) and/or graal/substratevm
  • Use llvm (via kotlin-native) to create a real compiler

Known Issues

  • Poor error messages

About

A rockstar (https://github.com/RockstarLang/rockstar) parser/interpreter/transpiler written in Kotlin

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published