LunaShield

    Multi-language static application security testing (SAST) scanner for MoonBit, C/C++, JavaScript/TypeScript, Python, Java, Go, Rust, PHP and more: 84 built-in data-driven rules with CWE/OWASP mapping, taint analysis, console/JSON/JUnit/SARIF/HTML reporting, and a Markdown report with Mermaid diagrams

    sast
    static-analysis
    security
    scanner
    qa
    taint
    cwe
    owasp
    tree-sitter
    mooncakes
    markdown
    mermaid
    Download zip
    Author
    Version
    0.3.0
    License
    MIT
    Last updated
    1 hour ago
    Downloads
    16

    #LunaShield

    mooncakes release license

    Multi-language static application security testing (SAST) for MoonBit modules published on mooncakes.io, written in MoonBit. The output is one Markdown report with embedded Mermaid diagrams — no server, no HTML dashboard, no images.

    This is a scanner, not a list of rules: the tree-sitter parsers, the query engine, the taint engine and the reporters all ship inside the artifact, and the 84 rules travel with it as data. Point it at a coordinate and it scans — no dependency to install, nothing to change in the target project.

    flowchart LR T["target<br/>coordinate / directory / inline source"] --> D["file discovery<br/>language routing"] D --> P["tree-sitter parse<br/>13 languages"] P --> Q["query match<br/>84 rules"] P --> C["C IR / CFG<br/>MCIL"] Q --> T2["taint analysis<br/>taint.json"] C --> T2 T2 --> S["scoring and suppression<br/>sast-ignore"] S --> A["aggregation and dedup<br/>fingerprint"] A --> R["report<br/>console / json / junit / sarif / html / markdown"]

    In one line: one coordinate in, one CI-ready report out, and an exit code that says whether the build should be blocked.


    #Features

    • A scanner, not a rule list

      The published artifact is the module itself: the parsers, the query engine, the taint engine, the reporters, and the embedded rule pack. The registry serves one artifact per version and moonx runs exactly that one. The rules are data and they travel with the artifact, so "install it and scan" never asks the user to download anything else.

      The rule pack is a generated artifact: scripts/gen_rulepack.py holds the 84 rule definitions and generates rules.json, manifest.json and all 84 fixture directories. The SHA-256 digests in manifest.json are computed over the exact bytes, so the rules inside the published artifact and the rules in this repository can be checked against each other.

    • 13 languages, 84 rules

      LanguageRulesLanguageRules
      C10Python10
      C++10Java10
      JavaScript10JSON10
      TypeScript5MoonBit10
      TSX5C#1
      Go1Rust1
      PHP1——

      The severity mix of the pack, measured: high 60 / medium 21 / low 3. Every rule carries a CWE number and an OWASP mapping, and both are printed in the report.

    • Four backends, all of them usable

      The module declares supported_targets = "+native+wasm+js+wasm-gc", and all four were measured to moon check with 0 errors and moon test fully green:

      Backendmoon checkmoon testWhat it can do
      native331 warnings / 0 errors255 / 255everything: directory scans, moon fetch, report files
      wasm331 warnings / 0 errors255 / 255everything, and this is the artifact the registry serves
      js11 warnings / 0 errors201 / 201inline sources only (--source)
      wasm-gc10 warnings / 0 errors200 / 200inline sources only (--source)

      The difference comes from upstream: moonbitlang/core/async/fs and .../process exist on native and wasm only (the toolchain declares every file of those packages as ["native", "wasm"]). So the scanner is split in two — a pure analysis core that compiles for every backend, and a filesystem layer that compiles only for the two that have one:

      flowchart TB subgraph PURE["pure analysis core · every backend"] SC["scan.mbt<br/>parse / query / taint / aggregate"] CO["coord.mbt<br/>coordinate or path"] EM["embedded rule pack<br/>rules_json / taint_json"] end subgraph FS["filesystem layer · native + wasm only"] TR["tree.mbt<br/>discover / read / cache"] LB["langc_bridge.mbt<br/>C preprocessor process"] CM["src/command/backend.mbt<br/>read and write files / moon fetch"] end SC --> TR SC --> LB SC --> CM CO --> CM EM --> SC

      wasm-gc has one more upstream limit: moonbitlang/core/async provides run_async_main on native, js and wasm, and not on wasm-gc. So wasm-gc gets the synchronous entry point run_sync.mbt — it still scans the sources it is given and prints the report, it just cannot await asynchronous I/O.

    • Deterministic output

      The same input twice produces byte-identical output. Measured: two consecutive scans of the same target give the same SHA-256 for findings.json — 096640E53305588405CE4B9EAB9F3F640D5273E3088FAAEA1DBE8DE674C83637.

      The means are: a sort key that covers every field, no timestamps, paths normalized relative and POSIX, shard hashes computed with FNV-1a over UTF-8 (so they agree across platforms), and the rule pack version written into the cache key.

    • A host-side predicate whitelist

      The conditions inside a rule are not executable code. The predicates are a fixed set: 8 base predicates plus 8 *_ignore_case variants, 16 in total. A rule author can choose one; they cannot write code.

    • Six report formats over one analysis

      FormatArtifactWhat it is for
      consolestdouthuman reading, with file:line:col
      jsonfindings.jsonmachines, with fingerprints
      junitjunit.xmlCI test reports
      sariffindings.sarifSARIF 2.1.0, with partialFingerprints
      htmlfindings.htmla single-file page
      markdownfindings.mdone Markdown report with Mermaid diagrams: numbered sections, tables, diagrams

      Measured on the tests/fixtures tree of the Example below (252 files, 85 findings), with all six formats produced in one run: findings.json 28,101 B, findings.sarif 36,567 B, findings.md 20,640 B, junit.xml 15,000 B, findings.html 10,251 B.

    • The Markdown report

      --format markdown produces one Markdown file (findings.md), with the same shape as riantr/LunaFlow's: numbered sections state the facts, tables give the numbers, Mermaid diagrams give the structure. It is part of the default format set and it is always a file — a diagram is worth nothing in a terminal, so with no --out it lands in the current directory and stdout says where:

      $ scan riantr/moonbit_markdown@0.1.4 LunaShield 0.3.0 files: 56 scanned, 17 skipped, 8 raw hits findings: 2 (critical 0, high 2, medium 0, low 0, info 0) ... report: ./findings.md

      Ten sections: acquisition and version pinning / ingestion statistics / the funnel / severity distribution / where the findings are / the findings / the rules that fired / the skipped files / method summary / reproduction command. Three diagrams inside:

      flowchart LR classDef stage fill:#fff9c4,stroke:#f9a825 classDef result fill:#c8e6c9,stroke:#1b5e20,stroke-width:2px f0["discovered 73"]:::stage --> f1["scanned 56"]:::stage --> f2["raw hits 8"]:::stage --> f3["findings 2"]:::result

      pie title Findings by severity "high" : 2

      flowchart LR classDef rule fill:#e1bee7,stroke:#4a148c classDef high fill:#ffcdd2,stroke:#b71c1c r0["MB001"]:::rule --> n0["src/mdcli/io_native.mbt:134:13"]:::high

      Finding text is untrusted input. A | in a snippet breaks a table row and a <script> in a snippet becomes live HTML in a Markdown viewer, so the table cells and the Mermaid labels are escaped separately — which is why raw source snippets never appear unescaped in the report.

      Paths are relative. The paths the scanner resolves itself (a coordinate is fetched into an absolute path under the working directory) are written relative to the working directory: the same tree scanned on two machines has to produce the same bytes, and an absolute path pins the report to one machine. A path that is not under the working directory is left alone — it has no relative form that would mean anything.

    • Gate-friendly

      • Exit codes: 0 clean / 1 the --fail-on gate fired / 2 configuration or rule error / 3 unrecoverable error
      • Suppression: // sast-ignore, // sast-ignore-next-line, // sast-ignore: JS001,JS003
      • Sharding: --shard i/n (0-based, 0 <= i < n)
      • Incremental: --incremental --cache-dir <dir>; --fast-cache trusts (size, mtime)
      • Baseline: --baseline <report.json> reports only what is new and writes baselineState into SARIF
      • Fault tolerance: a syntax error produces a ParseWarning instead of stopping the scan; binary, oversized and invalid-UTF-8 files are skipped by category and named in the report

    • Taint analysis

      --taint off|report|strict — three levels. taint.json is a hand-written specification (format version 1.0.0, which is a different thing from the package version 0.3.0) that declares the sources, sinks and propagation rules per language.


    #What you get

    The module is a library plus an executable, so "what you get" is a set of data structures and reports, not a running service:

    You callYou get backShape
    scan <coord>the console report and the Markdown reportstdout + findings.md
    scan --format jsonmachine-readable findings with fingerprintsfindings.json
    scan --format sarifSARIF 2.1.0 with partialFingerprintsfindings.sarif
    scan --format junita CI test reportjunit.xml
    scan --format htmla single-file pagefindings.html
    scan --format markdownone Markdown report with Mermaid diagramsfindings.md
    scan --source <path>=<text>the same analysis, with no filesystem at allstdout
    scan --shard i/nthe shard's findings; the merged report is byte-identical to a single runfindings.json
    scan --incrementalper-file results reused from the cachecache directory
    scan --baseline <report.json>only the findings that are newbaselineState in SARIF
    moonx riantr/LunaShield@latest <coord>the same, from the published wasm artifactstdout + findings.md

    Every one of those is a pure function or an explicit data value. There is no hidden global state and no network: the same inputs give the same bytes, which is why moon test can assert on them and why the gate can check the repository's own claims.

    The report is the human artefact — ten sections, Mermaid diagrams, file:line on every claim. The JSON is the machine artefact: fingerprints, and counters a CI gate can read without parsing prose.


    #Install

    moonx riantr/LunaShield@latest <author>/<module>@<version>

    moonx hands the target coordinate to the program as argv[1]; the program runs moon fetch itself, the sources land in ./.repos/<author>/<module>/<version>/, and the scan runs there.

    sequenceDiagram participant U as user participant X as moonx participant S as LunaShield(wasm) participant M as moon U->>X: moonx riantr/LunaShield@latest riantr/target@0.1.0 X->>S: fetch and instantiate the wasm artifact S->>M: moon fetch riantr/target@0.1.0 M-->>S: .repos/riantr/target/0.1.0/ S->>S: discover → parse → query → taint → aggregate S-->>U: report + exit code

    #Install it as a dependency of your own project

    moon add riantr/LunaShield@0.3.0

    moon.mod then carries:

    import { "riantr/LunaShield@0.3.0", }

    The executable package is riantr/LunaShield/apps/scan and the root package is riantr/LunaShield (the one moonx resolves). The imports in moon.pkg carry no version number — a version is the module's business, not a package's.

    #Run it from a checkout

    moon run apps/scan -- <target> [options]


    #Target resolution: coordinate or path

    moonx passes a coordinate; a local user passes a path. The two have to be told apart, and they are told apart in two steps, and the order matters:

    flowchart TD A["target string"] --> B{"does this path<br/>exist under cwd?"} B -- yes --> P["scan as a directory<br/>used as given"] B -- no --> C{"does it look like a coordinate<br/>author/module@version?"} C -- no --> P2["error<br/>neither a directory nor a coordinate"] C -- yes --> D["moon fetch<br/>into .repos/…"] D --> E{"did it arrive?"} E -- yes --> P E -- no --> F["error<br/>cannot fetch …"]

    Why the filesystem comes first: a relative path like w/src and a coordinate like riantr/LunaShield are indistinguishable by characters — both are two segments a registry name accepts. Only the filesystem can tell: a directory that is there is a directory.

    Then the characters: a registry name allows letters, digits, - and _. So C:\src (it carries :), a/b/c (two /) and ./x (it starts with .) are never treated as coordinates, and neither is a version string that is not @latest and not MAJOR.MINOR.PATCH[+build].

    A version string with build metadata is the normal case, not an exception: every moonbitlang/core release the registry serves has a shape like 0.1.20261126+3c0520448. Dropping the part after the + turns the coordinate into a path — the directory does not exist, zero files are scanned, and the tool reports a clean bill of health for a target it never read. A scanner that never read the target must not say the target is clean. So a target that is neither a directory nor a coordinate is an error (exit code 2), not an empty scan.

    The version comes from the filesystem, not from parsing the fetch log: the directories under .repos/<author>/<module>/ are the versions that were actually fetched, and the newest one is what @latest resolved to. The fetch is quiet and there is no log to parse — a log that gets parsed is a log that can be wrong.


    #CLI reference

    usage: scan [<root>] [options] --lang <csv> languages to scan (default: all) --rules <path> rule pack directory or rules.json (default: the rule pack embedded in the artifact) --source <path>=<txt> scan an inline source; repeatable. A source given this way needs no filesystem, so it works on every backend --format <csv> console,json,junit,sarif,html,markdown (default: console,markdown; the markdown report is always written as a FILE, never to stdout) --out <dir> write reports into dir instead of stdout --fail-on <severity> critical|high|medium|low|info|never (default: high) --shard <i>/<n> scan only shard i of n --ignore <pattern> extra ignore pattern (repeatable) --max-concurrency <n> per-file concurrency (default: 4) --incremental reuse per-file results from --cache-dir --cache-dir <dir> cache location (default: .lunashield-cache) --fast-cache trust (size, mtime) and skip reading unchanged files (implies --incremental; opt-in, mtime is not a content proof) --taint <mode> off|report|strict taint analysis (default: off) --baseline <path> JSON report from an earlier scan; report only new findings

    --source may be repeated. A path and --source cannot be combined — one is a directory, the other is inline source. --source is the route that lets a backend without a filesystem (js, wasm-gc) do a real analysis:

    scan --source 'app.py=eval(user_input)' --format console

    Measured on the wasm-gc backend:

    LunaShield 0.3.0 files: 1 scanned, 0 skipped, 1 raw hits findings: 1 (critical 0, high 1, medium 0, low 0, info 0) app.py:1:1 PY001 [high] Dynamic code execution via eval() warnings: 0


    #Example

    A registry module:

    $ scan riantr/moonbit_markdown@0.1.4 --format console --fail-on never LunaShield 0.3.0 files: 56 scanned, 17 skipped, 8 raw hits findings: 2 (critical 0, high 2, medium 0, low 0, info 0) build_pdf.js:392:36 JS003 [high] DOM XSS via innerHTML assignment src/mdcli/io_native.mbt:134:13 MB001 [high] Command injection: process.run with untrusted command warnings: 0

    A local tree. This one uses tests/fixtures/ — it is produced by the rule generator and it is under version control, so anybody can reproduce the numbers below (scanning the repository root does not work: skipped drifts with the local build output):

    $ scan tests/fixtures --format console --fail-on never LunaShield 0.3.0 files: 252 scanned, 0 skipped, 85 raw hits findings: 85 (critical 0, high 61, medium 21, low 3, info 0) C001/positive.c:1:1 C001 [high] Command injection via system() C002/positive.c:1:1 C002 [high] Format string from external input ... (85 findings, covering 13 languages) warnings: 9

    Those 9 warnings are MCIL parse warnings: the C fixtures are C source, not C IR, so the MCIL path cannot read them — a warning does not stop the scan, and the rules still produce their findings.

    The same target, the first lines of the Markdown report (measured output, --format markdown --out out):

    # LunaShield security report - riantr/moonbit_markdown@0.1.4 > Multi-language static application security testing: tree-sitter parsing, > data-driven rules with CWE and OWASP mapping, and optional taint analysis. ## 1. Acquisition and version pinning | Item | Value | | --- | --- | | Requested target | `riantr/moonbit_markdown@0.1.4` | | Source root | `.repos/riantr/moonbit_markdown/0.1.4` | | Rule pack | embedded in the artifact | | Taint mode | off | | Analyzer | LunaShield 0.3.0 |

    The one SARIF result for that run looks like this:

    {"version":"2.1.0","$schema":"https://json.schemastore.org/sarif-2.1.0.json", "runs":[{"tool":{"driver":{"name":"LunaShield","version":"0.3.0", "informationUri":"https://github.com/riantr/LunaShield", "rules":[{"id":"JS003","shortDescription":{"text":"DOM XSS via innerHTML assignment"}}]}}, "results":[{"ruleId":"JS003","level":"error", "message":{"text":"DOM XSS via innerHTML assignment"}, "locations":[{"physicalLocation":{"artifactLocation":{"uri":"build_pdf.js"}, "region":{"startLine":392,"startColumn":36,"byteOffset":18052}}}], "partialFingerprints":{"primaryLocationLineHash":"1907bee0b..."}}]}]}


    #Layout

    This repository is a single MoonBit module, riantr/LunaShield. The registry requires the module namespace to equal the authenticated username, so the 21 historical sast/* modules were merged into one — the registry serves one artifact per version, and that artifact has to be the scanner itself.

    main.mbt root executable package (the one moonx resolves) moon.mod / moon.pkg module manifest and root package src/command/ CLI implementation: scan.mbt (argument parsing) / coord.mbt (coordinate vs path) / args.mbt (argv) / run.mbt (async entry) / run_sync.mbt (sync entry) / backend.mbt and backend_stub.mbt (the filesystem layer) libs/core-model/ shared types: Finding / RawHit / Severity libs/rule/ the rule model and its parser libs/config/ configuration and command-line defaults libs/source-file/ file discovery and reading (text.mbt is pure, read/discover need fs) libs/lang-registry/ the registry of 13 languages libs/lang-c/ the C IR / CFG backend libs/parser/ the tree-sitter wrapper libs/query-engine/ query compilation and matching libs/scoring/ severity and scoring libs/cache/ the incremental cache libs/taint/ taint analysis libs/dataflow/ the CFG + worklist engine (not wired into the scan yet) libs/report/ Console/JSON/JUnit/SARIF/HTML/Markdown libs/orchestrator/ pipeline orchestration (scan.mbt is the pure core, tree.mbt the filesystem layer) libs/daemon/ the resident daemon protocol apps/scan/ the CLI executable entry apps/scan-daemon/ the resident daemon executable entry apps/rules-validate/ the rule pack acceptance tool grammars/mcil/ the vendored MCIL (C IR) grammar grammars/moonbit/ the vendored MoonBit tree-sitter binding grammars/ts/ 11 vendored community tree-sitter grammars (trimmed, patched, with their upstream licences) rulepacks/official/ the 84 rules (generated) + the embedded constants + the self-check tests/fixtures/ 84 rule fixture directories (positive / negative / expected.json) tests/integration/ integration tests tests/cram/ CLI end-to-end tests (26 cases) scripts/ the acceptance gates and the tooling

    src/command is the application layer and it does not live under libs/: the coverage gate measures library code, and the CLI's behaviour is covered by the cram end-to-end suite. src/command is a library package rather than an entry point because the module has two entry points — apps/scan and the root package — and two main packages cannot import each other. Both entries are thin forwarders.

    Why the grammars are vendored: the community grammars on the registry do not compile under the pinned toolchain — their binding.mbt calls e.to_string() on a CompactError that only has a Show impl, and moonc 0.10 no longer promotes a trait method into a method call. During an ordinary build scripts/patch_grammars.py fixes that one line; publishing does not: when the registry verifies a published package it rebuilds it from source against the published dependencies, and that path has no patch step (measured on 2026-12-01: before the vendoring, moon publish --dry-run reported 10 errors, one per grammar). So the grammars are trimmed, patched and committed with their upstream licences under grammars/ts/, and scripts/vendor_grammars.py regenerates them — the published package then needs the tree-sitter runtime as its only dependency, and the artifact is self-contained.


    #Verification

    scripts/verify.sh is the single authority of the gate: 14 steps, a fixed order, and CI runs the very same script.

    StepWhat it does
    1resolve dependencies (a best-effort check populates .mooncakes)
    2apply the grammar compatibility patch (idempotent; the grammars are vendored, this is the backstop)
    3grammar compatibility gate (fails if any vendored binding is unpatched)
    4moon check — all four backends
    5moon test — all four backends
    6moon fmt --check + the Mermaid syntax of this README's diagrams
    7rules-validate acceptance (exit codes 0 / 2, with line and column diagnostics)
    8cram end-to-end (26 cases)
    9the golden rule pack check (84 rules, detection ≥ 90 %, false positives ≤ 10 %)
    10the line coverage gate (libs/** aggregate ≥ 90 %, every file ≥ 75 %)
    11shard equivalence (the merged report is byte-identical to a single run)
    12the WASM target build (produces scan.wasm)
    13the C IR regression (MCIL CFG baseline and the IR-only rules)
    14the resident daemon (cache reuse, determinism, the gate, the baseline, shutdown)

    Measured: scripts/check_golden.py reports a detection rate of 100 % (84/84) and a false-positive rate of 0 % on the negative cases. The coverage gate: libs/** aggregates 91.8 % (floor 90 %) and every file is ≥ 75 % (floor 75 %).

    Steps 4 and 5 run all four backends because the module declares four backends in moon.mod — a backend that does not compile is a backend the declaration is wrong about.

    Step 6 parses this README's diagrams with the official Mermaid parser, so a diagram that would not render is caught before it is pushed. The parser is not vendored (it is a 2 MB npm tarball); the gate says so and skips the check when it is absent, because a gate that cannot run says so out loud rather than passing quietly. Step 9 renders a report and parses the diagrams in it with the same parser.


    #The host contract

    The published wasm artifact is not self-contained. It asks the host for 109 symbols, and the host has to provide every one of them:

    Import moduleSymbolsProvided by
    moonbitlang/async94the user's own toolchain, its core
    __moonbit_fs_unstable13the user's own toolchain, its core
    wasi_snapshot_preview12the host runtime's WASI

    Artifact size: 8,830,486 B. The symbol list is read from the artifact's own import section by scripts/qa/wasm_imports.mjs — it is not inferred from the source.

    What the host provides is the user's toolchain, not this module's pin, so the floor is the toolchain version and not a dependency version.


    #What this is not

    • Not a rule list. The published artifact is the scanner; the rules are part of it.
    • Not a compiler. It does not compile the project it scans, it parses the source.
    • Not complete language coverage. 13 languages and 84 rules cover the common injection, XSS, secret, deserialization, weak-crypto and configuration defect families — not formal verification.
    • Not a zero-false-positive promise. The golden fixtures give the detection and false-positive rates for the current rule set; change the rules and the numbers move.
    • Not a complete CLI on wasm-gc / js. They scan the sources given with --source; a directory scan and moon fetch need a filesystem, and only native and wasm have one.
    • Not a proof. A file without a finding is not a proof that the file is safe. The report says so in its own method section.


    #Quick Start

    #Scan a published module — no dependency, no changes

    moonx riantr/LunaShield@latest riantr/moonbit_markdown@latest

    moonx downloads the prebuilt wasm that mooncakes built for the published version, caches it, and runs it — no clone, no local build, and no install step. The target is a registry coordinate (author/module[@version]) or a path; omit it to scan the current directory.

    #Run it from a checkout

    # scan a published module; @latest is resolved once and pinned moon run apps/scan --target native -- riantr/moonbit_markdown@latest # a local tree, with the Markdown report written next to it moon run apps/scan --target native -- tests/fixtures --format markdown --out out # an inline source: no filesystem, so it works on every backend moon run apps/scan --target wasm-gc -- --source 'app.py=eval(user_input)' --format console

    The binary is _build/native/debug/build/apps/scan/scan.exe, and the root package's is _build/native/debug/build/LunaShield.exe.

    #The self-check

    The target slot pointed at this module itself:

    moonx riantr/LunaShield@latest riantr/LunaShield@latest

    The flags are in CLI reference.


    #Gates and drift detectors

    • moon test pins the fixture's findings: the C, Python, JavaScript and MoonBit rule families, the fingerprint of a finding, and the suppression comments.
    • scripts/verify.sh fails on a formatter drift, an unpatched vendored grammar, a failing backend, a coverage drop below 90 %, a shard mismatch, a golden regression or a Mermaid diagram that does not parse.
    • scripts/check_golden.py measures every rule against its own fixture directory: detection ≥ 90 % and false positives ≤ 10 %, with the positive and the negative case matched against expected.json.
    • scripts/check_sharded.py proves that the merged shard report is byte-identical to a single run.
    • scripts/check_daemon.py covers the resident daemon: cache reuse, determinism, the exit-code gate, the baseline and the shutdown.
    • scripts/gen_rulepack.py --check fails if any generated file has drifted — the rules, the manifest, the embedded constants and every fixture. The manifest's digests are computed over the exact bytes, so an editor that rewrites the line endings breaks the check.
    • scripts/vendor_grammars.py --check verifies what is committed under grammars/ts/.
    • scripts/qa/wasm_imports.mjs reads the published artifact's import section, so the host contract above is measured rather than asserted.
    • scripts/qa/check_mermaid.mjs parses this README's diagrams and a rendered report's diagrams with the official Mermaid parser.
    • Determinism: two runs produce byte-identical findings.json and findings.md.


    #Used By

    • apps/scan — the executable in this module, the command line over the same library.
    • src/command — the CLI implementation, shared by apps/scan and the root package that moonx resolves.
    • scripts/ — the acceptance gates, the rule pack generator and the QA helpers.
    • tests/ — the unit tests, the cram end-to-end suite and the 84 golden fixture directories.

    Outside this repository: none that the registry knows about. The registry lists 0 dependents for riantr/LunaShield, and nothing is claimed here that cannot be named.


    #Attribution

    • License: MIT (see LICENSE).
    • The 11 community tree-sitter grammars under grammars/ts/ are vendored from moonbit-community with their upstream licences kept beside them, and each carries the patch that makes it compile under the pinned toolchain.
    • The vendored MCIL grammar under grammars/mcil/ is MoonBit's own C IR grammar.

    Source Files