Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Checkpoint<D>

Type parameters

  • D: SemanticDiscriminator

Hierarchy

  • Checkpoint

Index

Properties

Private type

type: D

Accessors

acceptable_token

  • get acceptable_token(): Token

acceptable_tokens

  • get acceptable_tokens(): Token[]

afterStack

automaton_status

  • get automaton_status(): checkpoint_state

beforeStack

command

incoming_symbol

  • get incoming_symbol(): string

incoming_symbol_category

  • get incoming_symbol_category(): symbol_category

incoming_symbol_type

  • get incoming_symbol_type(): string

Methods

continue

  • continue<T>(opts?: { onAccept?: (val: SemanticMap[D]) => T; onFail?: (lastGood: Checkpoint<D>, errorAt: Checkpoint<D>) => T }): void | T
  • Type parameters

    • T

    Parameters

    • opts: { onAccept?: (val: SemanticMap[D]) => T; onFail?: (lastGood: Checkpoint<D>, errorAt: Checkpoint<D>) => T } = ...
      • Optional onAccept?: (val: SemanticMap[D]) => T
          • (val: SemanticMap[D]): T
          • Parameters

            • val: SemanticMap[D]

            Returns T

      • Optional onFail?: (lastGood: Checkpoint<D>, errorAt: Checkpoint<D>) => T

    Returns void | T

Generated using TypeDoc