Skip to main content

Module builder

Module builder 

Source
Expand description

Tree → Document builder. Mirrors the interscript-ruby pipeline: Isc::Normalizer (scalar folding) + Isc::Transform (item materialization) + Isc::DocumentBuilder + Isc::NodeAdapter (document assembly). Dependencies load BEFORE conversion so class-context charset resolution sees imported aliases (NodeAdapter#build ordering).

Functions§

assign_group_ids
Assign 1-based capture group ids in regex order: before, not_before, from, not_after, after (the interpreter’s lookaround assembly order). Returns the total group count.
build
decode_string_value
Apply the string-decode fold to a string-keyed capture value.
dependency_targets
Dependency targets declared by a parsed tree, in order (dependency "x" [as alias]), read before documents are loaded.
extract_kwargs
Extract name: "value" kwarg pairs (DocumentBuilder#extract_kwargs).
ident
Normalizer.scalar for identifiers.
normalize_heredoc
DocumentBuilder#normalize_heredoc: YAML-style dedent with paragraph preservation.
unescape_braces
DocumentBuilder#unescape_braces.
unquote
Normalizer.scalar for quoted strings / fragments.