Fix Transformer_NonRecursive crashing with ValueError when root is discarded When the root tree node's callback returns Discard, the stack is left empty and the unpacking `result, = stack` raises ValueError. The recursive Transformer.transform() handles this by returning None; apply the same guard here. Fixes #1611
Recent Commits to lark:master
-
Fix Transformer_NonRecursive crashing with ValueError when root is di…