def bind_rhs
import bolt@1.27.0.0/src/rules/table.bend as Tableimport Base
import bolt@1.27.0.0/src/syntax/lex.bend as Lex
import bolt@1.27.0.0/src/syntax/tree.bend as Tree
159# the right-hand side: the chain after a statement's top-level `=`
160def bind_rhs(nn: Tree.Node) -> Tree.Node:
161 match nn:
162 case Tree.NCons{Tree.Leaf{Lex.Tok{Lex.TEq{}, t, l, c}}, rest}:
163 rest
164 case Tree.NCons{h, rest}:
165 bind_rhs(rest)
166 case other:
167 Tree.NNil{}