Class: Pubid::Omg::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- Pubid::Omg::Parser
- Defined in:
- lib/pubid/omg/parser.rb
Overview
Parslet grammar for OMG specification identifiers.
Accepts:
OMG {ACRONYM}[ {VERSION}]
ACRONYM is uppercase letters/digits, at least 1 char. VERSION is digits/dots/spaces/beta+space+digit, e.g. "1.0", "2.5.1", "5 beta 3".
Class Method Summary collapse
Class Method Details
.parse(input) ⇒ Object
35 36 37 |
# File 'lib/pubid/omg/parser.rb', line 35 def self.parse(input) new.parse(input) end |