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,25 @@
// 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 interface defines an abstract listener for a parse tree produced by bfParser.
*/
class bfListener : public antlr4::tree::ParseTreeListener {
public:
virtual void enterProgram(bfParser::ProgramContext *ctx) = 0;
virtual void exitProgram(bfParser::ProgramContext *ctx) = 0;
virtual void enterStatements(bfParser::StatementsContext *ctx) = 0;
virtual void exitStatements(bfParser::StatementsContext *ctx) = 0;
};