[−][src]Trait antlr_rust::Parser
parser functionality required for ParserATNSimulator
to work
Required methods
pub fn get_interpreter(&self) -> &ParserATNSimulator
[src]
pub fn get_token_factory(&self) -> &'input Self::TF
[src]
pub fn get_parser_rule_context(
&self
) -> &Rc<<Self::Node as ParserNodeType<'input>>::Type>
[src]
&self
) -> &Rc<<Self::Node as ParserNodeType<'input>>::Type>
pub fn consume(&mut self, err_handler: &mut impl ErrorStrategy<'input, Self>) where
Self: Sized,
[src]
Self: Sized,
pub fn precpred(
&self,
localctx: Option<&<Self::Node as ParserNodeType<'input>>::Type>,
precedence: isize
) -> bool
[src]
&self,
localctx: Option<&<Self::Node as ParserNodeType<'input>>::Type>,
precedence: isize
) -> bool
pub fn get_input_stream_mut(
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
[src]
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
pub fn get_input_stream(&self) -> &dyn TokenStream<'input, TF = Self::TF>
[src]
pub fn get_current_token(&self) -> &<Self::TF as TokenFactory<'input>>::Tok
[src]
pub fn get_expected_tokens(&self) -> IntervalSet
[src]
pub fn add_error_listener(
&mut self,
listener: Box<dyn ErrorListener<'input, Self>>
) where
Self: Sized,
[src]
&mut self,
listener: Box<dyn ErrorListener<'input, Self>>
) where
Self: Sized,
pub 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>
)
pub fn get_error_lister_dispatch<'a>(
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a> where
Self: Sized,
[src]
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a> where
Self: Sized,
pub fn is_expected_token(&self, symbol: isize) -> bool
[src]
pub fn get_precedence(&self) -> isize
[src]
pub fn get_state(&self) -> isize
[src]
pub fn set_state(&mut self, v: isize)
[src]
pub fn get_rule_invocation_stack(&self) -> Vec<String>
[src]
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>>,
pub fn get_interpreter(&self) -> &ParserATNSimulator
[src]
pub fn get_token_factory(&self) -> &'input Self::TF
[src]
pub fn get_parser_rule_context(&self) -> &Rc<Ctx::Type>
[src]
pub fn consume(&mut self, err_handler: &mut impl ErrorStrategy<'input, Self>)
[src]
pub fn precpred(&self, _localctx: Option<&Ctx::Type>, precedence: isize) -> bool
[src]
pub fn get_input_stream_mut(
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
[src]
&mut self
) -> &mut dyn TokenStream<'input, TF = Self::TF>
pub fn get_input_stream(&self) -> &dyn TokenStream<'input, TF = Self::TF>
[src]
pub fn get_current_token(&self) -> &<Self::TF as TokenFactory<'input>>::Tok
[src]
pub fn get_expected_tokens(&self) -> IntervalSet
[src]
pub fn add_error_listener(
&mut self,
listener: Box<dyn ErrorListener<'input, Self>>
)
[src]
&mut self,
listener: Box<dyn ErrorListener<'input, Self>>
)
pub 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>
)
pub fn get_error_lister_dispatch<'a>(
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a>
[src]
&'a self
) -> Box<dyn ErrorListener<'input, Self> + 'a>