mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-12 22:42:23 +00:00
Implemented pop
This commit is contained in:
parent
ca1c9ade6c
commit
c9df4be879
@ -88,7 +88,7 @@ module Tartrazine
|
||||
lexer.state_stack << xml["state"]
|
||||
[] of Token
|
||||
when "pop"
|
||||
lexer.state_stack.pop
|
||||
lexer.state_stack.pop(xml["depth"].to_i)
|
||||
[] of Token
|
||||
else
|
||||
raise Exception.new("Unknown emitter type: #{type}: #{xml}")
|
||||
|
Loading…
Reference in New Issue
Block a user