[−][src]Trait antlr_rust::Parser
Required methods
fn get_interpreter(&self) -> &ParserATNSimulator
fn get_token_factory(&self) -> &'input Self::TF
fn get_parser_rule_context(
&self
) -> &Rc<<Self::Node as ParserNodeType<'input>>::Type>
&self
) -> &Rc<<Self::Node as ParserNodeType<'input>>::Type>
fn consume(&mut self, err_handler: &mut dyn ErrorStrategy<'input, Self>) where
Self: Sized,
Self: Sized,
fn precpred(
&self,
localctx: Option<&<Self::Node as ParserNodeType<'input>>::Type>,
precedence: isize
) -> bool
&self,
localctx: Option<&<Self::Node as ParserNodeType<'input>>::Type>,
precedence: isize
) -> bool
fn get_input_stream_mut(
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
fn get_input_stream(&self) -> &dyn TokenStream<'input, TF = Self::TF>
fn get_current_token(&self) -> &<Self::TF as TokenFactory<'input>>::Tok
fn get_expected_tokens(&self) -> IntervalSet
fn add_error_listener(&mut self, listener: Box<dyn ErrorListener<'input, Self>>) where
Self: Sized,
Self: Sized,
fn notify_error_listeners(
&self,
msg: String,
offending_token: Option<isize>,
err: Option<&ANTLRError>
)
&self,
msg: String,
offending_token: Option<isize>,
err: Option<&ANTLRError>
)
fn get_error_lister_dispatch<'a>(
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a> where
Self: Sized,
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a> where
Self: Sized,
fn is_expected_token(&self, symbol: isize) -> bool
fn get_precedence(&self) -> isize
fn get_state(&self) -> isize
fn set_state(&mut self, v: isize)
fn get_rule_invocation_stack(&self) -> Vec<String>
Implementors
impl<'input, Ext, I, Ctx, T: ?Sized> Parser<'input> for BaseParser<'input, Ext, I, Ctx, T> where
Ext: ParserRecog<'input, Self> + 'static,
I: TokenStream<'input>,
Ctx: ParserNodeType<'input, TF = I::TF>,
T: ParseTreeListener<'input, Ctx>,
Ctx::Type: Listenable<T>,
Rc<TerminalNode<'input, Ctx>>: CoerceUnsized<Rc<Ctx::Type>>,
Rc<ErrorNode<'input, Ctx>>: CoerceUnsized<Rc<Ctx::Type>>,
[src]
Ext: ParserRecog<'input, Self> + 'static,
I: TokenStream<'input>,
Ctx: ParserNodeType<'input, TF = I::TF>,
T: ParseTreeListener<'input, Ctx>,
Ctx::Type: Listenable<T>,
Rc<TerminalNode<'input, Ctx>>: CoerceUnsized<Rc<Ctx::Type>>,
Rc<ErrorNode<'input, Ctx>>: CoerceUnsized<Rc<Ctx::Type>>,
fn get_interpreter(&self) -> &ParserATNSimulator
[src]
fn get_token_factory(&self) -> &'input Self::TF
[src]
fn get_parser_rule_context(&self) -> &Rc<Ctx::Type>
[src]
fn consume(&mut self, err_handler: &mut dyn ErrorStrategy<'input, Self>)
[src]
fn precpred(&self, _localctx: Option<&Ctx::Type>, precedence: isize) -> bool
[src]
fn get_input_stream_mut(
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
[src]
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
fn get_input_stream(&self) -> &dyn TokenStream<'input, TF = Self::TF>
[src]
fn get_current_token(&self) -> &<Self::TF as TokenFactory<'input>>::Tok
[src]
fn get_expected_tokens(&self) -> IntervalSet
[src]
fn add_error_listener(&mut self, listener: Box<dyn ErrorListener<'input, Self>>)
[src]
fn notify_error_listeners(
&self,
msg: String,
offending_token: Option<isize>,
err: Option<&ANTLRError>
)
[src]
&self,
msg: String,
offending_token: Option<isize>,
err: Option<&ANTLRError>
)
fn get_error_lister_dispatch<'a>(
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a>
[src]
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a>