Interface Parser

Index

Methods

Methods

public atLeast(n: number): Parser

Parameters

  • n: number

Returns

Parser

public atMost(n: number): Parser

Parameters

  • n: number

Returns

Parser

public chain(next: (result: T) => 'parsimmon'.Parsimmon.Parser<U>): Parser

Parameters

  • next: (result: T) => 'parsimmon'.Parsimmon.Parser<U>

Returns

Parser

public desc(description: string): Parser

Parameters

  • description: string

Returns

Parser

public many(): Parser

Returns

Parser

public map(call: (result: T) => U): Parser

Parameters

  • call: (result: T) => U

Returns

Parser

public mark(): Parser

Returns

Parser

public or(otherParser: Parser): Parser

Parameters

Returns

Parser

public or(otherParser: Parser): Parser

Parameters

Returns

Parser

public parse(input: string): Result

Parameters

  • input: string

Returns

Result

public result(aResult: U): Parser

Parameters

  • aResult: U

Returns

Parser

public skip(otherParser: Parser): Parser

Parameters

Returns

Parser

public then(call: (result: T) => 'parsimmon'.Parsimmon.Parser<U>): Parser

Parameters

  • call: (result: T) => 'parsimmon'.Parsimmon.Parser<U>

Returns

Parser

public then(anotherParser: Parser): Parser

Parameters

Returns

Parser

public times(n: number): Parser

Parameters

  • n: number

Returns

Parser

public times(min: number, max: number): Parser

Parameters

  • min: number
  • max: number

Returns

Parser