-
Notifications
You must be signed in to change notification settings - Fork 0
/
GoGoBaseVisitor.h
156 lines (113 loc) · 4.39 KB
/
GoGoBaseVisitor.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
// Generated from GoGo.g4 by ANTLR 4.7.1
#pragma once
#include "antlr4-runtime.h"
#include "GoGoVisitor.h"
/**
* This class provides an empty implementation of GoGoVisitor, which can be
* extended to create a visitor which only needs to handle a subset of the available methods.
*/
class GoGoBaseVisitor : public GoGoVisitor {
public:
virtual antlrcpp::Any visitProg(GoGoParser::ProgContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitMain(GoGoParser::MainContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitStat(GoGoParser::StatContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitVarExpr(GoGoParser::VarExprContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitParens(GoGoParser::ParensContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitMulDiv(GoGoParser::MulDivContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitAddSub(GoGoParser::AddSubContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitNumberExpr(GoGoParser::NumberExprContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitFuncCall(GoGoParser::FuncCallContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitRelative(GoGoParser::RelativeContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitVariable(GoGoParser::VariableContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitIntegerConst(GoGoParser::IntegerConstContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitDoubleConst(GoGoParser::DoubleConstContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitDeclaration(GoGoParser::DeclarationContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitDeclaration_implicit(GoGoParser::Declaration_implicitContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitFunc_definition(GoGoParser::Func_definitionContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitFunc_call(GoGoParser::Func_callContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitFunc_call_params(GoGoParser::Func_call_paramsContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitParam(GoGoParser::ParamContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitParams(GoGoParser::ParamsContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitCompound_stmt(GoGoParser::Compound_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitIf_stmt(GoGoParser::If_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitElse_stmt(GoGoParser::Else_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitElse_if_stmt(GoGoParser::Else_if_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitWhile_loop_stmt(GoGoParser::While_loop_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitAssignment_stmt(GoGoParser::Assignment_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitInc_dec(GoGoParser::Inc_decContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitRtrn_stmt(GoGoParser::Rtrn_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitPrint_stmt(GoGoParser::Print_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitPrintf_stmt(GoGoParser::Printf_stmtContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitMul_div_op(GoGoParser::Mul_div_opContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitAdd_sub_op(GoGoParser::Add_sub_opContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitRel_op(GoGoParser::Rel_opContext *ctx) override {
return visitChildren(ctx);
}
virtual antlrcpp::Any visitInc_dec_op(GoGoParser::Inc_dec_opContext *ctx) override {
return visitChildren(ctx);
}
};