Class BlockRule

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

    public class BlockRule
    extends java.lang.Object
    implements GrammaticalRuleI
    Parse a statement block { sequence }. Equivalent to the production
     BlockRule ::=
            open statement close
     
    Author:
    Richard Morris
    See Also:
    Serialized Form
    • Constructor Detail

      • BlockRule

        public BlockRule​(SymbolToken open,
                         SequenceRule statement,
                         SymbolToken close)
        Parameters:
        open - opening bracket
        statement - rule to parse
        close - closing bracket
    • 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.