Skip to main content

jump_statement

Function jump_statement 

Source
pub fn jump_statement<'tok, I: UrdInput<'tok>>() -> BoxedUrdParser<'tok, I>
Expand description

Parser for jump statement (jump label or jump label and return).

Labels may be single-segment (jump my_scene) or two-segment (jump module.my_scene) for cross-module jumps. Three or more segments produce a diagnostic error with best-effort recovery (the path is truncated to the first two segments).