Class TerminatedExpressionRule

  • All Implemented Interfaces:
    GrammaticalRuleI, GrammarMatcher, java.io.Serializable

    public class TerminatedExpressionRule
    extends java.lang.Object
    implements GrammaticalRuleI
    Parse an expression followed by a separator.
     <TerminatedExpressionRule> ::=
              <expression> <sep>
     
    Returns the result of parsing the expression
    Author:
    Richard Morris
    See Also:
    Serialized Form
    • Constructor Detail

      • TerminatedExpressionRule

        public TerminatedExpressionRule​(ExpressionRule expressionRule,
                                        SymbolToken sep)
        Parameters:
        expressionRule - rule for expressions
        sep - token at end of expression
    • Method Detail

      • init

        public void init​(Jep jep)
        Description copied from interface: GrammarMatcher
        Delayed initialisation, this methods is called whenever components of the jep instance are changed.
        Specified by:
        init in interface GrammarMatcher
        Parameters:
        jep - the current jep instance.