All Implemented Interfaces:
ICommentState, ITokenizerState

public class CCommentState extends CppCommentState
This state will either delegate to a comment-handling state, or return a token with just a slash in it.
  • Constructor Details

    • CCommentState

      public CCommentState()
  • Method Details

    • 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
      Overrides:
      nextToken in class CppCommentState
      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