Skip to content
/ eplk Public

Epic programming language named Eplk, Extensible Programming Language in Kotlin; for-fun project - Project Halted

License

Notifications You must be signed in to change notification settings

iyxan23/eplk

Repository files navigation

EPLK

Hits-of-Code Java CI with Gradle

Epic programming language named Eplk, short for Extensible Programming Language in Kotlin

Created with the help of CodePulse's "Make YOUR OWN Programming Language" series, many thanks to him! Here is his playlist. Also, check his github repository and profile

Notice

Project halted because Iyxan23 decides to move on to something else instead, feel free to fork this

How to run

Go to eplk/src/main/java/com/iyxan23/eplk. Run Runner.kt to run .eplk files, and Shell.kt to run the eplk shell

Syntax

Syntax is derived mostly from python, java and kotlin (major languages I personally use). Note that this syntax can change overtime as I progress the language further.

// Hello comments!
var number = 10
var string = "Hello World"
var myList = ["hello", 1, -1, 50 * 50, 10 + 10 * 2]

fun greet(name) -> "Hello, " + name + "!"

println(string)
println(greet("Iyxan23"))

if (number > 50) {
    println("Broken!")
} elif (number > 30) {
    println("Also Broken!")
} else {
    println("Yes!")
}

number--
number++

for (var index = 0; index < 5; index++) {
    number++
    print("Loop at index ")
    println(index)
}

while (number > 0) {
    println(myList[number])
    number--
}

println(if (true) "Of course true!" else "What just happened")

FAQs

Why make an interpreted language in kotlin?

Well, yes I do know that kotlin is not the best choice as it's quite slow (+ eplk is literally an interpreted language), but I'm targeting EPLK to be intergrated with android apps very easily. And also this is a for-fun project in which so I can learn stuff about making an interpreted language, therefore I do whatever I want here

What's the point of making this?

First of all, I always wanted to learn on how a programming language works, and also building my own!. Second, I wanted a language that is very easily integrated to android. With EPLK, you can create your own Object, Classes, Functions in kotlin / java without messing around with EPLK itself (Coming soon). Third, This project gives me more experience in using kotlin, I'm quite new to kotlin afterall.

About

Epic programming language named Eplk, Extensible Programming Language in Kotlin; for-fun project - Project Halted

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages