#ink #narrative #interactive-fiction #compiler

brink-fmt

Source code formatter for inkle's ink narrative scripting language

1 unstable release

Uses new Rust 2024

new 0.0.2 Jun 4, 2026

#2368 in Programming languages


Used in 3 crates

MIT license

1MB
28K SLoC

Source code formatter for inkle's ink narrative scripting language.

Parses the input with brink_syntax::parse, lowers to HIR for structural nesting information, then walks the CST to classify each source line and reformats according to consistent rules. HIR provides the correct indentation depth for every source line.


brink

A Rust compiler and runtime for inkle's ink narrative scripting language.

Crates.io docs.rs CI

This project is in early development.

Dependencies

~6–8.5MB
~85K SLoC