Skip to main content

parse_inlines_engine

Function parse_inlines_engine 

Source
pub fn parse_inlines_engine(
    inline_tn: &Tabnas,
    tree: Tree,
    refmap: RefMap,
    options: &Options,
) -> Tree
Expand description

The engine-path inline phase: the same block walk as parse_inlines, with each block’s scan driven by the engine instance’s lexer. An empty subject never reaches the engine (its empty-source path returns before the rules run), and finishes the block directly: a no-op resolve, exactly as the hand scanner’s parse does.

Takes and returns the tree by value: while a block is being scanned the tree belongs to the per-parse slot the adapters reach through the context, and it comes back when the engine returns.