add antlr
This commit is contained in:
28
lib/generated/bfVisitor.h
Normal file
28
lib/generated/bfVisitor.h
Normal 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;
|
||||
|
||||
|
||||
};
|
||||
|
Reference in New Issue
Block a user