repeat1 ( parser -- parser )


Vocabulary
peg

Inputs
parsera parser


Outputs
parsera parser


Word description
Returns a parser that parses 1 or more instances of the parser. The AST produced is an array of the AST values produced by the parser, excluding ignore values. The parser must match at least once, but the resulting array may be empty if every match produces ignore.

Examples
USING: peg prettyprint ; "aaa" "a" token hide repeat1 parse-fully .
V{ }


Definition