Skip to content

Formally specify PICA Path expression syntax #109

@nichtich

Description

@nichtich

PICA::Path should include a formal grammar of PICA Path expression syntax. The current implementation is:

    ([012.][0-9.][0-9.][A-Z@.])     # tag
    (\[([0-9.]{2,3}|\d+-\d+)\])?    # occurrence
    (\$?([_A-Za-z0-9]+))?           # subfields
    (\/(\d+)?(-(\d+)?)?)?           # position

And some additionals checks on occurrence and position ranges.

The syntax will be extended by conditions/subspects (#108) and x-counters (#97).

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