Skip to main content

Module parser

Module parser 

Source
Expand description

Token stream -> command tree. A command is the run of args between two separators; the first arg is the verb. Block tokens are parsed recursively. Each command records the char offset of its verb (for LSP diagnostics).

Functionsยง

parse
Parse spec source into a command tree. Inline rust { ... } FFI blocks are desugared to __rust_compile "<b64>" LINE commands before lexing (a no-op when the source has no rust keyword).