parsita/parsers.py
def rep1(parser: Union[Parser, Sequence[Input]]) -> RepeatedOnceParser:
    """Match a parser one or more times repeatedly.

    This matches ``parser`` multiple times in a row. If it matches as least
    once, it returns a list of values from each time ``parser`` matched. If it
    does not match ``parser`` at all, it fails.

    Args:
        parser: Parser or literal
    """
    if isinstance(parser, str):
        parser = lit(parser)
    return RepeatedOnceParser(parser)
def rep1(parser: Union[Parser, Sequence[Input]]) -> RepeatedOnceParser:
    if isinstance(parser, str):
        parser = lit(parser)
    return RepeatedOnceParser(parser)
def rep1 ( parser : Union [ Parser , Sequence [ Input ] ] ) -> RepeatedOnceParser : if isinstance ( parser , str ) : parser = lit ( parser ) return RepeatedOnceParser ( parser )
Match a parser one or more times repeatedly.

    This matches ``parser`` multiple times in a row. If it matches as least
    once, it returns a list of values from each time ``parser`` matched. If it
    does not match ``parser`` at all, it fails.

    Args:
        parser: Parser or literal
Match a parser one or more times repeatedly .