-
Notifications
You must be signed in to change notification settings - Fork 70
/
visitorcalclistener.rs
57 lines (55 loc) · 1.99 KB
/
visitorcalclistener.rs
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
#![allow(nonstandard_style)]
// Generated from VisitorCalc.g4 by ANTLR 4.8
use super::visitorcalcparser::*;
use antlr_rust::tree::ParseTreeListener;
pub trait VisitorCalcListener<'input>:
ParseTreeListener<'input, VisitorCalcParserContextType>
{
/**
* Enter a parse tree produced by {@link VisitorCalcParser#s}.
* @param ctx the parse tree
*/
fn enter_s(&mut self, _ctx: &SContext<'input>) {}
/**
* Exit a parse tree produced by {@link VisitorCalcParser#s}.
* @param ctx the parse tree
*/
fn exit_s(&mut self, _ctx: &SContext<'input>) {}
/**
* Enter a parse tree produced by the {@code add}
* labeled alternative in {@link VisitorCalcParser#expr}.
* @param ctx the parse tree
*/
fn enter_add(&mut self, _ctx: &AddContext<'input>) {}
/**
* Exit a parse tree produced by the {@code add}
* labeled alternative in {@link VisitorCalcParser#expr}.
* @param ctx the parse tree
*/
fn exit_add(&mut self, _ctx: &AddContext<'input>) {}
/**
* Enter a parse tree produced by the {@code number}
* labeled alternative in {@link VisitorCalcParser#expr}.
* @param ctx the parse tree
*/
fn enter_number(&mut self, _ctx: &NumberContext<'input>) {}
/**
* Exit a parse tree produced by the {@code number}
* labeled alternative in {@link VisitorCalcParser#expr}.
* @param ctx the parse tree
*/
fn exit_number(&mut self, _ctx: &NumberContext<'input>) {}
/**
* Enter a parse tree produced by the {@code multiply}
* labeled alternative in {@link VisitorCalcParser#expr}.
* @param ctx the parse tree
*/
fn enter_multiply(&mut self, _ctx: &MultiplyContext<'input>) {}
/**
* Exit a parse tree produced by the {@code multiply}
* labeled alternative in {@link VisitorCalcParser#expr}.
* @param ctx the parse tree
*/
fn exit_multiply(&mut self, _ctx: &MultiplyContext<'input>) {}
}
antlr_rust::coerce_from! { 'input : VisitorCalcListener<'input> }