@@ -32,23 +32,23 @@ pub const WS: isize = 4;
32
32
pub const TEXT : isize = 5 ;
33
33
pub const STRING : isize = 6 ;
34
34
pub const channelNames: [ & ' static str ; 0 + 2 ] = [
35
- "DEFAULT_TOKEN_CHANNEL" , "HIDDEN"
35
+ "DEFAULT_TOKEN_CHANNEL" , "HIDDEN"
36
36
] ;
37
37
38
38
pub const modeNames: [ & ' static str ; 1 ] = [
39
- "DEFAULT_MODE"
39
+ "DEFAULT_MODE"
40
40
] ;
41
41
42
42
pub const ruleNames: [ & ' static str ; 6 ] = [
43
- "T__0" , "T__1" , "T__2" , "WS" , "TEXT" , "STRING"
43
+ "T__0" , "T__1" , "T__2" , "WS" , "TEXT" , "STRING"
44
44
] ;
45
45
46
46
47
47
pub const _LITERAL_NAMES: [ Option < & ' static str > ; 4 ] = [
48
- None , Some ( "','" ) , Some ( "'\r '" ) , Some ( "'\n '" )
48
+ None , Some ( "','" ) , Some ( "'\r '" ) , Some ( "'\n '" )
49
49
] ;
50
50
pub const _SYMBOLIC_NAMES: [ Option < & ' static str > ; 7 ] = [
51
- None , None , None , None , Some ( "WS" ) , Some ( "TEXT" ) , Some ( "STRING" )
51
+ None , None , None , None , Some ( "WS" ) , Some ( "TEXT" ) , Some ( "STRING" )
52
52
] ;
53
53
lazy_static ! {
54
54
static ref _shared_context_cache: Arc <PredictionContextCache > = Arc :: new( PredictionContextCache :: new( ) ) ;
@@ -57,22 +57,22 @@ lazy_static! {
57
57
58
58
59
59
pub struct CSVLexer {
60
- base : BaseLexer < CSVLexerActions > ,
60
+ base : BaseLexer < CSVLexerActions > ,
61
61
// static { RuntimeMetaData.checkVersion("4.8", RuntimeMetaData.VERSION); }
62
62
}
63
63
64
64
impl Deref for CSVLexer {
65
- type Target = BaseLexer < CSVLexerActions > ;
65
+ type Target = BaseLexer < CSVLexerActions > ;
66
66
67
- fn deref ( & self ) -> & Self :: Target {
68
- & self . base
69
- }
67
+ fn deref ( & self ) -> & Self :: Target {
68
+ & self . base
69
+ }
70
70
}
71
71
72
72
impl DerefMut for CSVLexer {
73
- fn deref_mut ( & mut self ) -> & mut Self :: Target {
74
- & mut self . base
75
- }
73
+ fn deref_mut ( & mut self ) -> & mut Self :: Target {
74
+ & mut self . base
75
+ }
76
76
}
77
77
78
78
@@ -90,29 +90,29 @@ impl CSVLexer {
90
90
91
91
fn add_error_listener ( & mut self , _listener : Box < dyn ErrorListener > ) {
92
92
self . base . add_error_listener ( _listener) ;
93
- }
93
+ }
94
94
95
- fn remove_error_listeners ( & mut self ) {
96
- self . base . remove_error_listeners ( )
97
- }
95
+ fn remove_error_listeners ( & mut self ) {
96
+ self . base . remove_error_listeners ( )
97
+ }
98
98
99
- fn get_grammar_file_name ( & self ) -> & ' static str {
100
- "CSVLexer.g4"
101
- }
99
+ fn get_grammar_file_name ( & self ) -> & ' static str {
100
+ "CSVLexer.g4"
101
+ }
102
102
103
- pub fn new ( input : Box < dyn CharStream > ) -> Self {
104
- antlr_rust:: recognizer:: check_version ( "0" , "1" ) ;
105
- Self {
106
- base : BaseLexer :: new_base_lexer (
107
- input,
108
- LexerATNSimulator :: new_lexer_atnsimulator (
109
- _ATN. clone ( ) ,
110
- _decision_to_DFA. clone ( ) ,
111
- _shared_context_cache. clone ( ) ,
112
- ) ,
113
- Box :: new ( CSVLexerActions { } ) ,
114
- )
115
- }
103
+ pub fn new ( input : Box < dyn CharStream > ) -> Self {
104
+ antlr_rust:: recognizer:: check_version ( "0" , "1" ) ;
105
+ Self {
106
+ base : BaseLexer :: new_base_lexer (
107
+ input,
108
+ LexerATNSimulator :: new_lexer_atnsimulator (
109
+ _ATN. clone ( ) ,
110
+ _decision_to_DFA. clone ( ) ,
111
+ _shared_context_cache. clone ( ) ,
112
+ ) ,
113
+ Box :: new ( CSVLexerActions { } ) ,
114
+ )
115
+ }
116
116
}
117
117
}
118
118
@@ -125,35 +125,35 @@ impl LexerRecog for CSVLexerActions {}
125
125
impl Recognizer for CSVLexerActions { }
126
126
127
127
impl Actions for CSVLexerActions {
128
- type Recog = BaseLexer < CSVLexerActions > ;
128
+ type Recog = BaseLexer < CSVLexerActions > ;
129
129
}
130
130
131
131
impl CSVLexerActions { }
132
132
133
133
impl TokenSource for CSVLexer {
134
- fn next_token ( & mut self ) -> Box < dyn Token > {
135
- self . base . next_token ( )
136
- }
134
+ fn next_token ( & mut self ) -> Box < dyn Token > {
135
+ self . base . next_token ( )
136
+ }
137
137
138
- fn get_line ( & self ) -> isize {
139
- self . base . get_line ( )
140
- }
138
+ fn get_line ( & self ) -> isize {
139
+ self . base . get_line ( )
140
+ }
141
141
142
- fn get_char_position_in_line ( & self ) -> isize {
143
- self . base . get_char_position_in_line ( )
144
- }
142
+ fn get_char_position_in_line ( & self ) -> isize {
143
+ self . base . get_char_position_in_line ( )
144
+ }
145
145
146
- fn get_input_stream ( & mut self ) -> & mut dyn CharStream {
147
- self . base . get_input_stream ( )
148
- }
146
+ fn get_input_stream ( & mut self ) -> & mut dyn CharStream {
147
+ self . base . get_input_stream ( )
148
+ }
149
149
150
- fn get_source_name ( & self ) -> String {
151
- self . base . get_source_name ( )
152
- }
150
+ fn get_source_name ( & self ) -> String {
151
+ self . base . get_source_name ( )
152
+ }
153
153
154
- fn get_token_factory ( & self ) -> & dyn TokenFactory {
155
- self . base . get_token_factory ( )
156
- }
154
+ fn get_token_factory ( & self ) -> & dyn TokenFactory {
155
+ self . base . get_token_factory ( )
156
+ }
157
157
}
158
158
159
159
@@ -178,7 +178,7 @@ lazy_static! {
178
178
179
179
180
180
const _serializedATN: & ' static str =
181
- "\x03 \u{608b} \u{a72a} \u{8133} \u{b9ed} \u{417c} \u{3be7} \u{7786} \u{5964} \x02 \
181
+ "\x03 \u{608b} \u{a72a} \u{8133} \u{b9ed} \u{417c} \u{3be7} \u{7786} \u{5964} \x02 \
182
182
\x08 \x2c \x08 \x01 \x04 \x02 \x09 \x02 \x04 \x03 \x09 \x03 \x04 \x04 \x09 \x04 \x04 \x05 \
183
183
\x09 \x05 \x04 \x06 \x09 \x06 \x04 \x07 \x09 \x07 \x03 \x02 \x03 \x02 \x03 \x03 \x03 \x03 \
184
184
\x03 \x04 \x03 \x04 \x03 \x05 \x06 \x05 \x17 \x0a \x05 \x0d \x05 \x0e \x05 \x18 \x03 \x05 \
0 commit comments