Implemented pop

This commit is contained in:
Roberto Alsina 2024-08-03 07:28:16 -03:00
parent ca1c9ade6c
commit c9df4be879

View File

@ -88,7 +88,7 @@ module Tartrazine
lexer.state_stack << xml["state"] lexer.state_stack << xml["state"]
[] of Token [] of Token
when "pop" when "pop"
lexer.state_stack.pop lexer.state_stack.pop(xml["depth"].to_i)
[] of Token [] of Token
else else
raise Exception.new("Unknown emitter type: #{type}: #{xml}") raise Exception.new("Unknown emitter type: #{type}: #{xml}")