Interface GrammarMatcher

    • Method Detail

      • match

        Node match​(Lookahead2Iterator<Token> it,
                   GrammarParser parser)
            throws ParseException
        Test whether the input matches this pattern.
        Parameters:
        it - An iterator inspecting the input
        parser - the parser to use when evaluating sub expressions
        Returns:
        if matched returns a node representing the content, return null is does not match
        Throws:
        ParseException - if there is a syntactical error in the input.
      • init

        void init​(Jep jep)
        Delayed initialisation, this methods is called whenever components of the jep instance are changed.
        Parameters:
        jep - the current jep instance.