summaryrefslogtreecommitdiff
path: root/src/program.cr
diff options
context:
space:
mode:
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
+