Skip to content

elfcoda/jhin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Home Support Me C++17 Python3 Version License
Dependency Status

Jhin-lang

Installation 🐇

Tutorial 🐿

What is Jhin?

"烬" in Chinese, from the game League of Legends
Jhin is a simple Strong Static typed programming language

Jhin Source Code: example.jn

-- This is a comment
def functionName(num: Int, pi: Float): Int -- function definition
{
    count: Int <- 7
    while (count <= 10)
    {
        printf(count)   -- link to C lib
        count <- count + 1
    }

    if (3.14 == pi)
    {
        num
    }

    count
}

def main(): Int
{
    functionName(12, 2.18)
    0
}

Run in compiler:

./jhin example.jn
./output

Run in interpreter:

./jhini example.jn

Run in REPL:

Waiting for the code

Architecture 🐢

Arch

Contribute 🦘

Project built in C++17
dependency:

  • Python3
  • matplotlib

How to deploy:

  1. Building Clang and Working with the Code
  2. go to llvm-project/llvm/examples/Kaleidoscope and add add_subdirectory(jhin) to CMakeLists.txt
  3. git submodule add https://<token>@github.com/elfcoda/jhin.git jhin
    You should create a personal access <token> to use in place of a password with the command line or with the API.
    how to get your token

Now you are starving right?

About

A simple language named Jhin

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published