Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GenericNumberState

A NumberState object returns a number from a scanner. This state's idea of a number allows an optional, initial minus sign, followed by one or more digits. A decimal point and another string of digits may follow these digits.

Hierarchy

Implements

Index

Properties

Methods

Properties

Protected DOT

DOT: number = '.'.charCodeAt(0)

Protected MINUS

MINUS: number = '-'.charCodeAt(0)

Methods

nextToken

  • Gets the next token from the stream started from the character linked to this state.

    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