Class GenericCommentState

    • Constructor Detail

      • GenericCommentState

        public GenericCommentState()
    • Method Detail

      • nextToken

        public Token nextToken​(IScanner scanner,
                               ITokenizer tokenizer)
                        throws Exception
        Either delegate to a comment-handling state, or return a token with just a slash in it.
        Specified by:
        nextToken in interface ITokenizerState
        Parameters:
        scanner - A textual string to be tokenized.
        tokenizer - A tokenizer class that controls the process.
        Returns:
        The next token from the top of the stream.
        Throws:
        Exception