dylan-sutton-chavez/interpreter
概要
A Rust SDK for building runtimes, with a state-machine lexer, a single-pass SSA parser and a tiered register VM.
言語・ランタイム計測したスター増加
- 24時間
- 0
- 7日間
- -1
- 15日間
- -1
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルinterpreter
interpreter is a Rust crate for building language runtimes. You write a token table, the rules of your language and the natives its programs call, and the crate gives you a lexer, a single-pass parser that writes bytecode with no AST, and a register VM with an op budget, an exact memory meter, a garbage collector and snapshots. A runtime compiles to one WebAssembly module that runs in a web page and in the interpreter CLI, and the same crate links into a Rust program.
Overview installs the crate, the CLI and Lox, the runtime the docs run, and CONTRIBUTING.md covers building from a clone.
Docs
| Page | Covers |
|---|---|
| Overview | What the crate holds, how to install it and the CLI, and Lox |
| Build a runtime | A whole runtime, its token table, natives and language |
| Grammar | Forms, readings and patterns a runtime adds to the parser |
| Rust | Running programs inside a Rust program |
| JavaScript | Running a runtime's .wasm in a page, and the ABI any host drives |
| CLI | The commands, packages, grants, actors and a CLI of your own |
| Errors and limits | How errors read and every limit a run has |
| Plugins | Writing a .wasm plugin |
| Stability | What a 1.x release keeps, the exceptions, and how the formats and the ABI evolve |
License
Apache 2.0 for every directory of the repo, as LICENSE.md sets out. The book's tests in examples/lox/tests/suite and its benchmarks in bench/cases/book keep their own MIT license, written beside them.
Sponsors
- PyneSys, since May 2026
関連プロジェクトを探す
読み込み中…