[][src]Trait antlr_rust::recognizer::Actions

pub trait Actions {
    type Recog: ?Sized;
    fn sempred(
        _localctx: &dyn ParserRuleContext,
        _rule_index: isize,
        _action_index: isize,
        _recog: &mut Self::Recog
    ) -> bool { ... }
fn action(
        _localctx: &dyn ParserRuleContext,
        _rule_index: isize,
        _action_index: isize,
        _recog: &mut Self::Recog
    ) { ... } }

! Usually generated by ANTLR !

Used to make user predicates and actions callable by parser Generated by ANTLR tool from actions and predicated added in grammar file

Associated Types

type Recog: ?Sized

Loading content...

Provided methods

fn sempred(
    _localctx: &dyn ParserRuleContext,
    _rule_index: isize,
    _action_index: isize,
    _recog: &mut Self::Recog
) -> bool

fn action(
    _localctx: &dyn ParserRuleContext,
    _rule_index: isize,
    _action_index: isize,
    _recog: &mut Self::Recog
)

Loading content...

Implementors

Loading content...