summaryrefslogtreecommitdiff
path: root/src/program.cr
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2022-09-04 15:55:10 +1200
committerMatthew Hall <hallmatthew314@gmail.com>2022-09-04 15:55:10 +1200
commit2fe381c9a1719718d4a4dfc662f07db47af7831f (patch)
tree9878717f235f686849e685599500394a461e9b0e /src/program.cr
parent70dbbd733758b61317af37af1cbbec6aa4b6e2a5 (diff)
Big refactor + Program base class
Diffstat (limited to 'src/program.cr')
-rw-r--r--src/program.cr13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/program.cr b/src/program.cr
new file mode 100644
index 0000000..9f92583
--- /dev/null
+++ b/src/program.cr
@@ -0,0 +1,13 @@
+require "./util.cr"
+
+abstract struct Flint::Program
+ def initialize(@source_io : IO)
+ end
+
+ abstract def interpret : Nil
+
+ def compile
+ raise Util::NoCompilerAvailableError.new("No compiler available for this language.")
+ end
+end
+