Class PossiblyTerminatedExpressionRule

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

    public class PossiblyTerminatedExpressionRule
    extends java.lang.Object
    implements GrammaticalRuleI
    Parse an expression followed by an optional separator.
     <PossiblyTerminatedExpressionRule> ::=
      || <Expression>
            || <Expression> <sep>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • PossiblyTerminatedExpressionRule

        public PossiblyTerminatedExpressionRule​(ExpressionRule expressionRule,
                                                SymbolToken sep)
        Constructor.
        Parameters:
        expressionRule - The rule for an expression
        sep - token at end of a statement
    • 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.