Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Parser

Hierarchy

  • Parser

Index

Constructors

constructor

Properties

info

info: object

Type declaration

  • errors: Array<any>
  • time: object
    • elapsed: Date | number

Private stream

stream: Stream

Methods

expect

  • expect(type: Tokenize.TokenType | string, value?: string): void
  • Parameters

    • type: Tokenize.TokenType | string
    • Optional value: string

    Returns void

location

  • location(): object

lookBack

  • lookBack(peek: number): Token

match

  • match(type: Tokenize.TokenType | string, value?: string): boolean
  • Parameters

    • type: Tokenize.TokenType | string
    • Optional value: string

    Returns boolean

matchAny

  • matchAny(array: Array<Array<any>>): boolean
  • Parameters

    • array: Array<Array<any>>

    Returns boolean

next

parse

  • parse(driver: any, parser: Object): object
  • Parameters

    • driver: any
    • parser: Object

    Returns object

peek

  • peek(peek?: number): Token

previous

raise

  • raise(message?: string, type?: string): void
  • Parameters

    • Optional message: string
    • Optional type: string

    Returns void

Generated using TypeDoc