Options
All
  • Public
  • Public/Protected
  • All
Menu

Class LRItem

Represents a LR(1) Item

export
class

LRItem

Hierarchy

  • LRItem

Index

Constructors

Properties

Methods

Constructors

constructor

  • new LRItem(production: Production, lookAhead: string[], dotPos?: number): LRItem
  • Creates an instance of LRItem.

    memberof

    LRItem

    Parameters

    • production: Production

      Production of LRItem

    • lookAhead: string[]

      List of look ahead symbols

    • Default value dotPos: number = 0

    Returns LRItem

Properties

dotPos

dotPos: number

The dot (ZERO based) position in the production.

type

{number}

memberof

LRItem

lookAhead

lookAhead: string[]

The list of look ahead symbols.

type

{string[]}

memberof

LRItem

production

production: Production

The production for LR(1) item

type

{Production}

memberof

LRItem

Methods

toString

  • toString(): string
  • A helper that returns the string form of the LRItem

    memberof

    LRItem

    Returns string

Generated using TypeDoc