# kuro-lang

> Generic programming language and environment written in TypeScript.

Latest version **0.0.6** (published 2020-09-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install kuro-lang
pnpm add kuro-lang
yarn add kuro-lang
bun add kuro-lang
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.6 |
| Published | 2020-09-11 |
| First published | 2020-06-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 366.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 10 |
| Author | hota1024 |
| Maintainers | hota1024 |

## Links

- npm: https://www.npmjs.com/package/kuro-lang
- Repository: https://github.com/quro-framework/kuro-lang
- npm.io page: https://npm.io/package/kuro-lang

## Dependencies (4)

- [chalk](https://npm.io/package/chalk.md) ^4.1.0
- [inversify](https://npm.io/package/inversify.md) ^5.0.1
- [reflect-metadata](https://npm.io/package/reflect-metadata.md) ^0.1.13
- [inversify-inject-decorators](https://npm.io/package/inversify-inject-decorators.md) ^3.1.0

## Recent versions

- 0.0.6 (latest) — 2020-09-11
- 0.0.5 — 2020-09-10
- 0.0.4 — 2020-09-09
- 0.0.3 — 2020-09-08
- 0.0.2 — 2020-09-08
- 0.0.1 — 2020-09-08
- 0.0.0 — 2020-06-15

## README

<img width="2986" alt="Quro-Discord-Art@2x" src="https://user-images.githubusercontent.com/24543982/85203876-7714ea80-b34b-11ea-99e0-6741630f6475.png">

<h2 align="center">Kuro</h2>
<p align="center">Generic programming language and environment written in TypeScript.</p>
<div align="center"></div>

## 📝 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.

## ⭐️ Example Syntax

(using rust highlight syntax)

### Tax calculation

```rust
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 // 1100
```

### Browser & Fetch API

```rust
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

- [specifications.md](./specifications.md)
- [tokens.md](./tokens.md)
- [nodes.md](./nodes.md)

---
_Source: https://npm.io/package/kuro-lang · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
