Skip to main content

Crate runec

Crate runec 

Source

Modules§

bytecode
compiler
diagnostic_messages
diagnostics
error
lexer
lints
Static lint passes complementary to the pointer checker.
parser
pointer
pointer_checker
symbol
symloader
Loads pack files and populates the SymbolRegistry.
token
trigger_table
Single source of truth for RuneScript trigger metadata.
typechecker
types
writer

Enums§

SourceProvider
How the diagnostic layer fetches a file’s source text (by its cache-key path) when building rustc-style help/suggestions. The batch path keeps every source in memory; the streaming path keeps only the on-disk paths and re-reads the handful of files that actually produce a warning — so the ~4 MB of source text isn’t resident through the compile’s peak. Cheap to copy (just borrows).

Functions§

compile
Compile scripts and write output. When lint is true, also run lint passes (unused locals, unreachable code) after code generation.
compile_memory
Compile scripts and write output. When lint is true, also run lint passes (unused locals, unreachable code) after code generation.
compile_memory_with_options
In-memory compile — returns the (script.dat, script.idx) bytes instead of writing them — choosing the compilation strategy.
compile_memory_with_tests
Like compile_memory but includes #testscript sections when include_tests is true.
compile_with_options
Compile scripts and write output, choosing the compilation strategy.
lint
Run all analysis passes (parse, type-check, codegen, pointer-check, lints) without writing output. Useful for editor tooling and CI lint gates.