Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ExpressionSymbolState

Implements a symbol state object.

Hierarchy

Implements

Index

Constructors

Methods

Constructors

constructor

  • Constructs an instance of this class.

    Returns ExpressionSymbolState

Methods

add

  • add(value: string, tokenType: TokenType): void
  • Add a multi-character symbol.

    Parameters

    • value: string

      The symbol to add, such as "=:="

    • tokenType: TokenType

    Returns void

nextToken

  • Return a symbol token from a scanner.

    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