Class CRParser.TagHandler

    • Field Detail

      • sc

        public Scanner sc
        The scanner used by the parser.
    • Constructor Detail

      • TagHandler

        public TagHandler​(CRParser.BlockParser parser)
        Initializes the handler.
        Parameters:
        parser - The parser that uses this handler
    • Method Detail

      • handle

        public abstract boolean handle​(CRParser.ParseState state)
                                throws java.io.IOException
        Handles a tag or block, probably by accessing sc.
        Parameters:
        state - The current state
        Returns:
        true if the tag has been handled.
        Throws:
        java.io.IOException - If the scanner throws an exception.