Throw error on unexpected grammar input line

This commit is contained in:
Josh Holtrop 2021-05-01 09:40:22 -04:00
parent 9884047090
commit 9e865d1982

View File

@ -27,8 +27,12 @@ module Imbecile
return false return false
end end
@tokens[name] = expr @tokens[name] = expr
else
$stderr.puts "Unexpected input on line #{line_number}: #{line}"
return false
end end
end end
true
end end
end end