Remove memory allocation bug

This commit is contained in:
2020-10-01 23:19:45 +05:30
parent a1c9e4894f
commit c55a1745a5
4 changed files with 43 additions and 8 deletions

View File

@@ -9,11 +9,11 @@ using namespace antlr4;
using namespace antlrcpp;
// using namespace std;
class executeBGE: public bfeBaseVisitor{
private:
protected:
std::vector<char> memory;
int pointer=0;
public:
executeBGE() : bfeBaseVisitor(),memory(100) {
executeBGE() : bfeBaseVisitor(),memory(1) {
}
// Any visitProgram(bfeParser::ProgramContext*) override;
Any visitNumberedStmt(bfeParser::NumberedStmtContext*) override;