From b51ed9b9736eb0b333585b0b9cb1797054c4b69f Mon Sep 17 00:00:00 2001 From: Matthew Hall Date: Sun, 4 Sep 2022 14:02:19 +1200 Subject: Custom exceptions are a bit more robust --- src/thue/program.cr | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/thue/program.cr') diff --git a/src/thue/program.cr b/src/thue/program.cr index f449f5a..96e1284 100644 --- a/src/thue/program.cr +++ b/src/thue/program.cr @@ -1,5 +1,6 @@ require "./thue.cr" require "./parser.cr" +require "../util.cr" class Thue::Program def initialize(@parser : Parser) @@ -17,5 +18,9 @@ class Thue::Program puts state end + + def compile + raise Util::NoCompilerAvailableError.new("No available compilier for Thue") + end end -- cgit v1.2.1