Skip to main content

parse_shorter_head_reading

Function parse_shorter_head_reading 

Source
pub fn parse_shorter_head_reading(
    working_set: &mut StateWorkingSet<'_>,
    head: Span,
    input_type: Option<&Type>,
) -> Option<Expression>
Expand description

Re-parse a command head that greedily matched a multi-word subcommand as its next shorter reading, demoting the trailing words to arguments over the real buffer spans.

head must be resolvable in working_set; returns None for single-word heads.