summaryrefslogtreecommitdiff
path: root/src/brainfuck/program.cr
diff options
context:
space:
mode:
authorMatthew Hall <hallmatthew314@gmail.com>2022-09-02 21:03:42 +1200
committerMatthew Hall <hallmatthew314@gmail.com>2022-09-02 21:03:42 +1200
commit4dd4e596ae6e5da84f2ce4296cbf9c030efe69bb (patch)
tree401bf737a26c3cac4a32cf4862180d6288f9c010 /src/brainfuck/program.cr
parentdd2bcbdadf2068723bdd88729d295171b0291cd2 (diff)
Can read code from STDIN, can parse brainfuck
Diffstat (limited to 'src/brainfuck/program.cr')
-rw-r--r--src/brainfuck/program.cr14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/brainfuck/program.cr b/src/brainfuck/program.cr
new file mode 100644
index 0000000..cf4a097
--- /dev/null
+++ b/src/brainfuck/program.cr
@@ -0,0 +1,14 @@
+require "./parser.cr"
+
+class Brainfuck::Program
+ def initialize(@parser : Brainfuck::Parser)
+ end
+
+ def interpret
+ puts @parser.parse
+ end
+
+ def compile
+ end
+end
+