Class: Yaparc::AbstractParser
- Inherits:
-
Object
- Object
- Yaparc::AbstractParser
- Includes:
- Parsable
- Defined in:
- lib/yaparc.rb
Constant Summary
Constants included from Parsable
Parsable::IS_ALPHANUM, Parsable::IS_DIGIT, Parsable::IS_LOWER, Parsable::IS_SPACE, Parsable::IS_WHITESPACE
Instance Attribute Summary
Attributes included from Parsable
Instance Method Summary collapse
Methods included from Parsable
Instance Method Details
#parse(input, &block) ⇒ Object
522 523 524 525 526 527 528 529 |
# File 'lib/yaparc.rb', line 522 def parse(input, &block) tree = @parser.call.parse(input) if block_given? @tree = yield tree else @tree = tree end end |