Skip to content
项目

关于

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

探索相关项目

加载中…