lib/hilbert/parser.rb in hilbert-0.0.2700320 vs lib/hilbert/parser.rb in hilbert-0.0.2700400
- old
+ new
@@ -86,9 +86,11 @@
token_val = lexed.get_value($1)
lexed.parsed!(token_val.parentheses, $1)
when /:CONT(\d+)/
lexed.parsed!(lexed.get_value($1), $1)
+ when /:UNKNOW(\d+)/
+ raise "#{lexed.get_value($1)} can not be parsed ;("
end
lexed.squash!(($1.to_i)..($1.to_i+1)) if lexed.token_str =~ /:(?:CONT|R)(\d+):(?:CONT|R)(\d+)/
end
LangEqualizer.execute(