MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript

github.com/aiscript-dev/aiscript @1.2.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.2.1 ↗ · + Follow
406 symbols 1,399 edges 66 files 61 documented · 15%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AiScript

Test codecov

AiScript is a lightweight scripting language that runs on JavaScript.

Play online ▶

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

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

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

ドキュメントはこちらをご覧ください

Read translated document

Getting started (language)

はじめに(日本語)

Get Started (en)

Getting started (host implementation)

アプリに組み込む(日本語)

Embedding into Your Application (en)

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

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 194
Method 157
Class 52
Interface 2
Enum 1

Languages

TypeScript100%

Modules by API surface

src/interpreter/index.ts42 symbols
src/interpreter/reference.ts34 symbols
src/error.ts29 symbols
src/parser/streams/token-stream.ts22 symbols
src/parser/scanner.ts22 symbols
src/interpreter/util.ts21 symbols
src/parser/streams/char-stream.ts20 symbols
src/parser/syntaxes/statements.ts19 symbols
src/parser/syntaxes/expressions.ts19 symbols
src/type.ts13 symbols
src/interpreter/scope.ts13 symbols
src/utils/random/chacha20.ts11 symbols

For agents

$ claude mcp add aiscript \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page