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

28
lib/generated/bfVisitor.h Normal file
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 "bfParser.h"
/**
* This class defines an abstract visitor for a parse tree
* produced by bfParser.
*/
class bfVisitor : public antlr4::tree::AbstractParseTreeVisitor {
public:
/**
* Visit parse trees produced by bfParser.
*/
virtual antlrcpp::Any visitProgram(bfParser::ProgramContext *context) = 0;
virtual antlrcpp::Any visitStatements(bfParser::StatementsContext *context) = 0;
};