lib/loxxy/error.rb in loxxy-0.1.05 vs lib/loxxy/error.rb in loxxy-0.1.06
- old
+ new
@@ -4,6 +4,9 @@
# Abstract class. Generalization of Loxxy error classes.
class Error < StandardError; end
# Error occurring while Loxxy executes some invalid Lox code.
class RuntimeError < Error; end
+
+ # Error occurring while Loxxy parses some invalid Lox code.
+ class SyntaxError < Error; end
end