Class: Pubid::Ogc::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Pubid::Ogc::Parser
- Defined in:
- lib/pubid/ogc/parser.rb
Overview
Parslet grammar for OGC identifiers.
Recognizes <yy>-<nnn> optionally followed by a revision suffix that
begins with a letter (r/c/a/R…) and may carry a trailing letter
(e.g. "r3a"). An optional leading "OGC" publisher token is accepted for
leniency, though the canonical printed form omits it.
Examples: "25-023", "24-032r1", "01-009a", "04-095c1", "OGC 24-032r1".
Class Method Summary collapse
Class Method Details
.parse(input) ⇒ Object
35 36 37 |
# File 'lib/pubid/ogc/parser.rb', line 35 def self.parse(input) new.parse(input) end |