A fork of Crisp for HARP
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 

24 righe
379 B

module Crisp
extend self
class ParseException < Exception
end
class EvalException < Exception
end
class RuntimeException < Exception
getter :thrown
def initialize(@thrown : Crisp::Expr)
super()
end
end
def eval_error(msg)
raise Crisp::EvalException.new msg
end
def parse_error(msg)
raise Crisp::ParseException.new msg
end
end