add antlr

This commit is contained in:
2020-09-29 23:16:42 +05:30
parent 34754a7130
commit 2b36e74ff5
181 changed files with 14689 additions and 7 deletions

View File

@@ -0,0 +1,28 @@
// Generated from /home/atreya/Documents/Projects/Miscellaneous/bfc/grammar/bf.g4 by ANTLR 4.8
#pragma once
#include "antlr4-runtime.h"
#include "bfVisitor.h"
/**
* This class provides an empty implementation of bfVisitor, which can be
* extended to create a visitor which only needs to handle a subset of the available methods.
*/
class bfBaseVisitor : public bfVisitor {
public:
virtual antlrcpp::Any visitProgram(bfParser::ProgramContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitStatements(bfParser::StatementsContext *ctx) override {
return visitChildren(ctx);
}
};