mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
Added TODO
This commit is contained in:
parent
99e1e2b0cb
commit
f80869db1f
@ -84,6 +84,7 @@ module Tartrazine
|
|||||||
when "token"
|
when "token"
|
||||||
raise Exception.new "Can't have a token without a match" if match.nil?
|
raise Exception.new "Can't have a token without a match" if match.nil?
|
||||||
[Token.new(type: xml["type"], value: match[0])]
|
[Token.new(type: xml["type"], value: match[0])]
|
||||||
|
# TODO handle #push #push:n #pop and multiple states
|
||||||
when "push"
|
when "push"
|
||||||
puts "Pushing state #{xml["state"]}"
|
puts "Pushing state #{xml["state"]}"
|
||||||
lexer.state_stack << xml["state"]
|
lexer.state_stack << xml["state"]
|
||||||
|
Loading…
Reference in New Issue
Block a user