Added TODO

This commit is contained in:
Roberto Alsina 2024-08-03 07:39:26 -03:00
parent 99e1e2b0cb
commit f80869db1f

View File

@ -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"]