Options
All
  • Public
  • Public/Protected
  • All
Menu

Module parsers

Index

Classes

Type aliases

Functions

Type aliases

ParseFn

ParseFn<T>: (x: ParserInput) => T

Type parameters

  • T

Type declaration

    • A ParseFn transforms a ParseInput to type T. It must throw a ParseError if the transformation can not be done.

      Parameters

      Returns T

ParserInput

ParserInput: any

A ParseInput can be transformed using a ParseFn.

Functions

Const parse

  • Syntactic sugar to lazy invoke a ParseFn; Creates a new ParseFn with given parser and returns it for later invocation.

    Type parameters

    • T

    Parameters

    Returns ParseFn<T>

Generated using TypeDoc