aiscript

aiscript

🔋 A lightweight scripting language runing on JavaScript

Stars: 184

Visit
 screenshot

AiScript is a lightweight scripting language that runs on JavaScript. It supports arrays, objects, and functions as first-class citizens, and is easy to write without the need for semicolons or commas. AiScript runs in a secure sandbox environment, preventing infinite loops from freezing the host. It also allows for easy provision of variables and functions from the host.

README:

AiScript

Test codecov

AiScript is a lightweight scripting language that runs on JavaScript.

Play online ▶

Read translated version (en)

AiScriptは、JavaScript上で動作する軽量スクリプト言語です。

  • 配列、オブジェクト、関数等をファーストクラスでサポート
  • JavaScript風構文で書きやすい
  • セキュアなサンドボックス環境で実行される
  • 無限ループ等でもホストをフリーズさせない
  • ホストから変数や関数を簡単に提供可能

このリポジトリには、JavaScriptで実装されたパーサーと処理系が含まれます。

Getting started (language)

See here

Getting started (host implementation)

todo

Example programs

Hello world

<: "Hello, world!"

Fizz Buzz

for (let i, 100) {
  <: if (i % 15 == 0) "FizzBuzz"
    elif (i % 3 == 0) "Fizz"
    elif (i % 5 == 0) "Buzz"
    else i
}

License

MIT

For Tasks:

Click tags to check more tools for each tasks

For Jobs:

Alternative AI tools for aiscript

Similar Open Source Tools

For similar tasks

For similar jobs