diff options
| author | Matthew Hall <hallmatthew314@gmail.com> | 2022-09-04 14:02:19 +1200 |
|---|---|---|
| committer | Matthew Hall <hallmatthew314@gmail.com> | 2022-09-04 14:02:19 +1200 |
| commit | b51ed9b9736eb0b333585b0b9cb1797054c4b69f (patch) | |
| tree | 1b947d5672bc1d53c0cc9fdc0eacb0d64db3b5c2 /src/thue | |
| parent | 8dfc184c00f7c04e70f861914a944e3dbee3a136 (diff) | |
Custom exceptions are a bit more robust
Diffstat (limited to 'src/thue')
| -rw-r--r-- | src/thue/program.cr | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
