Class: PoParser::Parser
- Inherits:
-
Parslet::Parser
- Object
- Parslet::Parser
- PoParser::Parser
- Defined in:
- lib/poparser/parser.rb
Instance Method Summary collapse
Instance Method Details
#bracketed(atom) ⇒ Object
59 60 61 |
# File 'lib/poparser/parser.rb', line 59 def bracketed(atom) str('[') >> atom >> str(']') end |
#spaced(character) ⇒ Object
63 64 65 |
# File 'lib/poparser/parser.rb', line 63 def spaced(character) str(character) >> space? end |