lib/hilbert/lexer/base.rb in hilbert-0.0.2700410 vs lib/hilbert/lexer/base.rb in hilbert-0.0.2700420
- old
+ new
@@ -30,10 +30,18 @@
until ss.eos?
scan_rslt, ss = scan(ss)
if scan_rslt
@lexeds << scan_rslt unless scan_rslt[:token] == :NULL
else
- fail "I'm so sorry, something wrong. Please feel free to report this. [DEBUGG CODE30]"
+ fail <<-ERROR
+I'm so sorry, something wrong. Please feel free to report this. [DEBUG CODE30]
+
+========== DEBUG INFO ==========
+str: #{str}
+scan_rslt: #{scan_rslt}
+@lexeds: #{@lexeds}
+
+ERROR
end
end
end
def scan(ss)