Website Summary Files Commits Branches @commit @diff @stats
path: root / homework / 81568 / BF_Interpreter / bf_interpreter.h
diff options
context:
space:
mode:
Commitaeb0d4f887a0c18c36b59acc7b5df08e62020c50 (patch)
Author
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:32:48 +0300
Committer
 Dimitar Trendafilov <dimitar@coherent-labs.com>
2020-10-11 21:33:38 +0300
Filesb6abdc6e1810326b587f2a160f39570f1f568f27 /homework/81568/BF_Interpreter/bf_interpreter.h
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.tar.gz
IPL-aeb0d4f887a0c18c36b59acc7b5df08e62020c50.zip
Parent154b7cd30f21af1554ca26986ff1643e28857727 (diff)
Removed old homeworks
1 files changed, 0 insertions, 33 deletions
-rw-r--r--homework/81568/BF_Interpreter/bf_interpreter.h33
diff --git a/homework/81568/BF_Interpreter/bf_interpreter.h b/homework/81568/BF_Interpreter/bf_interpreter.h
deleted file mode 100644
index 9e355ff..0000000
--- a/homework/81568/BF_Interpreter/bf_interpreter.h
+++ /dev/null
@@ -1,33 +0,0 @@
-#ifndef BRAINFUCK_INTERPRETER_H
-#define BRAINFUCK_INTERPRETER_H
-
-#include <cstddef>
-#include <iostream>
-
-
-class BFInterpreter {
-public:
- using uchar = unsigned char;
-
- BFInterpreter(const char *program, std::istream &input = std::cin, std::ostream &output = std::cout);
- ~BFInterpreter();
-
- void compile();
-
-private:
- void addMemory();
- void loop();
- void proccessNonLoopCmd(char c);
-
-private:
- std::istream &input;
- std::ostream &output;
- size_t memory_size;
-
- uchar *memory_blocks;
- uchar *p;
- char *program;
- char *pp;
-};
-
-#endif /* BRAINFUCK_INTERPRETER_H */