Skip to content

Improvements on Tyre.rep #7

@Drup

Description

@Drup

It could be possible to improves Tyre.rep by adding a ~min and ~max optional arguments, similar to Re.repn.

The case where max is provided could be optimized to avoid reparsing (by manual expansion of the repetition). We need to measure how re handles such manual expansion for large values of max.

One thing that is still unclear to me is what we should do for unparsing. Do we enforce the length constraint or do we just let the user provide whatever it likes ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions