Skip to content

Extended character classes: optimisation #537

@NWilson

Description

@NWilson

As a follow-up to my PR, I will refactor the parser which consumes META codes.

It should do constant-folding on simple cases, such as [a-z -- m] or [^[^a-z]]. We do still need the OP_ECLASS code, for tricky cases that can't be folded (complex logical ops over XCLASS), but doing AND/OR operations on an OP_CLASS can be folded at compile-time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions