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
ba9a25e56e
commit
ca1c9ade6c
@ -86,7 +86,10 @@ module Tartrazine
|
||||
[Token.new(type: xml["type"], value: match[0])]
|
||||
when "push"
|
||||
lexer.state_stack << xml["state"]
|
||||
return [] of Token
|
||||
[] of Token
|
||||
when "pop"
|
||||
lexer.state_stack.pop
|
||||
[] of Token
|
||||
else
|
||||
raise Exception.new("Unknown emitter type: #{type}: #{xml}")
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user