Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Parser

Implementation of SR Parser.

export
class

Parser

Hierarchy

  • Parser

Index

Constructors

Properties

Methods

Constructors

constructor

  • Creates an instance of Parser.

    memberof

    Parser

    Parameters

    Returns Parser

Properties

parseLog

parseLog: ParsingLog[]

The parse log while parsing a text with the parser.

type

{ParsingLog[]}

memberof

Parser

parsingTable

parsingTable: IParsingTable

The parsing table to use while parsing.

type

{IParsingTable}

memberof

Parser

Methods

parse

  • parse(sentence: string): boolean
  • Checks if the sentence is generated by the CFG represented by IParsingTable

    Stores the ParsingLog while parsing.

    memberof

    Parser

    Parameters

    • sentence: string

      To parse

    Returns boolean

    True if parse successful, otherwise false.

Generated using TypeDoc