项目作者: plank-lang

项目描述 :
A simple programming language written in kotlin.
高级语言: Kotlin
项目地址: git://github.com/plank-lang/plank.git
创建时间: 2021-01-08T22:58:14Z
项目社区:https://github.com/plank-lang/plank

开源协议:

下载


PLANK

GitHub Repo stars
GitHub issues
GitHub last commit

Plank is a simple language made with LLVM and ANTLR in Kotlin. Need help? contact me
on Twitter or message me on discord Gabii#3336.

Content

Example

Hello world in plank:

  1. use Std.IO;
  2. fun main(argc: Int32, argv: **Char) {
  3. println("Hello, world");
  4. }

You can find more examples here

Modules

Name Description
cli All command-line stuff
syntax AST and Descriptor Mapping
parser ANTLR grammar
codegen The LLVM core that compiles to IR representation
analyzer Code analyzing
vscode-plugin VSCode tooling plugin
runtime Runtime functions
stdlib Language stdlib

CLI

  1. Usage: plank [OPTIONS] COMMAND [ARGS]...
  2. Options:
  3. -h, --help Show this message and exit
  4. Commands:
  5. jit
  6. repl

Building

The LLVM 13.0.0 is required, you can either put llvm-config in the $PATH environment variable, either create a
local.properties and put llvm.config=<target to llvm-config executable> in it.

You should execute the following commands:

  1. $ git clone git@github.com:plank-lang/plank.git
  2. $ cd plank
  3. # if you are in windows
  4. # PS .\gradlew.bat cli:linkPlankReleaseExecutableMingwX64
  5. $ ./gradlew cli:linkPlankReleaseExecutableLinuxX64

The binary file cli/build/bin/linuxX64/plankReleaseExecutable or if you are in a Windows
machine cli/build/bin/mingwX64/plankReleaseExecutable will be created.

Pull Requests

PRs are welcome as long as they are well explained and only change one feature at a time.
This doesn’t mean I’m going to accept all PRs, it just means I’m going to consider it.

Ending

If you liked and/or use the language consider leaving a star on the repo and following me on twitter :)