Sha256: 9edf5dc4ce9f049e3ee12b0489e0976c210a6ef973c444907bd92fb59072ce7d

Contents?: true

Size: 601 Bytes

Versions: 3

Compression:

Stored size: 601 Bytes

Contents

module Tnql
  grammar Registry
    rule registry
      exclude:exclude_crown_dependencies? space registry:(registry_code / registry_abbr) <Nodes::RegistryNode>
    end

    rule exclude_crown_dependencies
      space ('not' / 'non' / 'exclude') space crown_dependency:('channel islands' / 'iom' / 'isle of man') <Nodes::ExcludeCrownDependencyNode>
    end

    rule registry_code
      'y' [0-9] 4..4 <Nodes::RegistryCodeNode>
    end

    rule registry_abbr
      ('nycris' / 'trent' / 'ecric' / 'thames' / 'oxford' / 'ociu' / 'swcis' / 'wmciu' / 'nwcis') <Nodes::RegistryAbbrNode>
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
tnql-1.1.2 lib/tnql/grammars/registry.treetop
tnql-1.1.1 lib/tnql/grammars/registry.treetop
tnql-1.1.0 lib/tnql/grammars/registry.treetop