def step
bolt@1.27.0.0 · src/syntax/tree.bend:391
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
import Base
import bolt@1.27.0.0/src/lazy/lazy.bend as Lazy
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
391
392def step(+tok: Lex.Tok, st: B, glued: Bool) -> B:
393 Lex.Tok{+k, t, l, c} = tok
394 B{+fr, +stack} = st
395 Lazy.stop(B, Bool.not(Lex.significant(k)), B{Bool.or(fr, Lex.is_nl(k)), stack},
396 _u => B{False{}, push(Lazy.stop(List<&2, Frame>, Bool.not(fr), stack, _u2 => fresh(stack, tok)), tok, glued)})