-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGrammarVisitor.java
32 lines (31 loc) · 1.03 KB
/
GrammarVisitor.java
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
// Generated from Grammar.g4 by ANTLR 4.9.2
import org.antlr.v4.runtime.tree.ParseTreeVisitor;
/**
* This interface defines a complete generic visitor for a parse tree produced
* by {@link GrammarParser}.
*
* @param <T> The return type of the visit operation. Use {@link Void} for
* operations with no return type.
*/
public interface GrammarVisitor<T> extends ParseTreeVisitor<T> {
/**
* Visit a parse tree produced by {@link GrammarParser#prog}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitProg(GrammarParser.ProgContext ctx);
/**
* Visit a parse tree produced by the {@code operacionBinaria}
* labeled alternative in {@link GrammarParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitOperacionBinaria(GrammarParser.OperacionBinariaContext ctx);
/**
* Visit a parse tree produced by the {@code numero}
* labeled alternative in {@link GrammarParser#expr}.
* @param ctx the parse tree
* @return the visitor result
*/
T visitNumero(GrammarParser.NumeroContext ctx);
}