module Rattler::Parsers::Combining

Combining describes a parser that is a combination of other parsers.

Public Instance Methods

capturing?() click to toggle source

(see Parser#capturing?)

# File lib/rattler/parsers/combining.rb, line 7
def capturing?
  @capturing ||= any? {|child| child.capturing? }
end
capturing_decidable?() click to toggle source

(see Parser#capturing_decidable?)

# File lib/rattler/parsers/combining.rb, line 12
def capturing_decidable?
  @capturing_decidable ||= all? {|child| child.capturing_decidable? }
end
semantic?() click to toggle source

(see Parser#semantic?)

# File lib/rattler/parsers/combining.rb, line 17
def semantic?
  @semantic = any? {|child| child.semantic? }
end
with_ws(ws) click to toggle source

(see Parser#with_ws)

# File lib/rattler/parsers/combining.rb, line 22
def with_ws(ws)
  self.class.new(children.map {|_| _.with_ws(ws) }, attrs)
end