andL

infix fun <S, A, B : Any> Parser<S, A>.andL(q: Parser<S, B>): Parser<S, A>

Creates a parser that matches the first parser and then the second parser, returning the result of the first parser.

A.K.A. <*

Return

A parser that matches the first parser and then the second parser, returning the result of the first parser.

Parameters

q

The second parser.