mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22: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"]
|
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}")
|
||||||
|
Loading…
Reference in New Issue
Block a user