kuro-lang

Generic programming language and environment written in TypeScript.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

8

Maintenance

Last Commit

3mos ago

Contributors

2

Package

Dependencies

4

Size (min+gzip)

22.1KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

Quro-Discord-Art@2x

Kuro

Generic programming language and environment written in TypeScript.

📝 Details

Kuro is a programming language with a safe, general syntax that can be embedded in a variety of platforms.

💻 Platforms

The Kuro language will be available on the following platforms.(🌴 is tree-walk interpreter. ↪️ is transpiler.)

  • 🌴Node.js
  • 🌴Browser JS
  • ↪️Kuro to JS
  • 💻Kuro VM

🚀 Features

  • Output lexes of the source code.
  • Output AST of the lexes or source code.
  • Debugging helper for token and AST.

⭐️ Future Syntax

(using rust highlight syntax)

Tax calculation

use io

fn tax(tax, price) {
  price + price * (tax / 100)
}

fn suffix(suffix, value) {
  value + suffix // join value and suffix and returns it.
}

const yen = suffix("yen") // create yen function that returns join given value and "yen".
const tax10 = tax(10)     // create tax10 function that returns amount of the 10% sales tax applied.

1000 -> tax10 -> yen -> println // 1100yen

Browser & Fetch API

use "browser" * // expand all fields of "browser" module.

const url = "https://jsonplaceholder.typicode.com/todos/1"

fn format(object) {
  JSON.stringify(json, undefined, 2)
}

const pre = document.createElement("pre")

pre.innerHTML = url -> fetch -> await -> json -> await -> format

pre -> document.body.appendChild

🔧 Specifications

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100