Module branch

Module branch 

Source
Expand description

Branch rule expression node.

Represents (condition) -> target_rule rules used by the rule parser, not general-purpose expressions.

  • condition: parsed as a Coalesce expression in parentheses.
  • target_rule: identifier for the rule to branch to.

Evaluation:

  • If condition evaluates to Bool(true), returns Value::Branch(target_rule).
  • If condition yields any other non-error value, returns Value::Empty.
  • If condition evaluation yields an error or Value::Errata, it is propagated.

Structs§

Branch

Functions§

parse_branch