Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Base10NumberParser

Hierarchy

  • Parser<number>
    • Base10NumberParser

Index

Constructors

constructor

  • new Base10NumberParser(sign?: number, value?: number, mode?: number, step?: number): Base10NumberParser
  • Parameters

    • Optional sign: number
    • Optional value: number
    • Optional mode: number
    • Optional step: number

    Returns Base10NumberParser

Properties

Readonly mode

mode: number

Readonly sign

sign: number

Readonly step

step: number

Readonly value

value: number

Methods

asError

  • Type parameters

    • O2

    Returns Parser<O2>

bind

  • bind(): number
  • Returns number

feed

  • Parameters

    Returns Parser<number>

fork

  • fork(condition: unknown): Parser<number>
  • Parameters

    • condition: unknown

    Returns Parser<number>

isCont

  • isCont(): boolean
  • Returns boolean

isDone

  • isDone(): boolean
  • Returns boolean

isError

  • isError(): boolean
  • Returns boolean

trap

  • trap(): Error
  • Returns Error

Static done

  • done<O>(value: O): Parser<O>
  • Type parameters

    • O

    Parameters

    • value: O

    Returns Parser<O>

Static error

  • Type parameters

    • O

    Parameters

    Returns Parser<O>

Static parse

  • parse(input: Input, sign?: number, value?: number, mode?: number, step?: number): Parser<number>
  • Parameters

    • input: Input
    • Optional sign: number
    • Optional value: number
    • Optional mode: number
    • Optional step: number

    Returns Parser<number>

Generated using TypeDoc