pSeq: "Seq" Parser Combinator

Description Usage Arguments Details Value

Description

Create a parser that succeeds on input accepted by a sequence of simpler parsers applied in succession.

Usage

1
pSeq(tag, ...)

Arguments

tag

a class name or a function of a single argument that constructs an object representing the result of the parse.

...

A sequence of parsers to matched in sequence.

Details

The tag argument should either be a string naming the class of the result, or a function that constructs a object representing the result of the parse given the list of results of the constituent parsers.

Value

Return a parser.


SWotherspoon/Combin8R documentation built on May 9, 2019, 12:05 p.m.