pip_services3_expressions.tokenizers.generic.GenericCommentState module

class pip_services3_expressions.tokenizers.generic.GenericCommentState.GenericCommentState

Bases: pip_services3_expressions.tokenizers.ICommentState.ICommentState

A CommentState object returns a comment from a scanner.

next_token(scanner: pip_services3_expressions.io.IScanner.IScanner, tokenizer: pip_services3_expressions.tokenizers.ITokenizer.ITokenizer)pip_services3_expressions.tokenizers.Token.Token

Either delegate to a comment-handling state, or return a token with just a slash in it.

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.