Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericCommentState

A CommentState object returns a comment from a scanner.

Hierarchy

Implements

Index

Properties

Methods

Properties

Protected CR

CR: number = '\n'.charCodeAt(0)

Protected LF

LF: number = '\r'.charCodeAt(0)

Methods

nextToken

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

    Parameters

    • scanner: IScanner

      A textual string to be tokenized.

    • tokenizer: ITokenizer

      A tokenizer class that controls the process.

    Returns Token

    The next token from the top of the stream.

Generated using TypeDoc