GithubHelp home page GithubHelp logo

iyxan23 / eplk Goto Github PK

View Code? Open in Web Editor NEW
5.0 2.0 0.0 504 KB

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

License: MIT License

Kotlin 100.00%
for-fun kotlin programming-language experiments epic

eplk's Introduction

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.

eplk's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.