A fork of Crisp for HARP
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
332 B

  1. module Mal
  2. class ParseException < Exception
  3. end
  4. class EvalException < Exception
  5. end
  6. class RuntimeException < Exception
  7. getter :thrown
  8. def initialize(@thrown)
  9. super()
  10. end
  11. end
  12. end
  13. def eval_error(msg)
  14. raise Mal::EvalException.new msg
  15. end
  16. def parse_error(msg)
  17. raise Mal::ParseException.new msg
  18. end