class RDoc::Markdown

def _ListItem

ListItem = (Bullet | Enumerator) @StartList:a ListBlock:b { a << b } (ListContinuationBlock:c { a.push(*c) })* { list_item_from a }
def _ListItem
  _save = self.pos
  while true # sequence
    _save1 = self.pos
    while true # choice
      _tmp = apply(:_Bullet)
      break if _tmp
      self.pos = _save1
      _tmp = apply(:_Enumerator)
      break if _tmp
      self.pos = _save1
      break
    end # end choice
    unless _tmp
      self.pos = _save
      break
    end
    _tmp = _StartList()
    a = @result
    unless _tmp
      self.pos = _save
      break
    end
    _tmp = apply(:_ListBlock)
    b = @result
    unless _tmp
      self.pos = _save
      break
    end
    @result = begin;  a << b ; end
    _tmp = true
    unless _tmp
      self.pos = _save
      break
    end
    while true
      _save3 = self.pos
      while true # sequence
        _tmp = apply(:_ListContinuationBlock)
        c = @result
        unless _tmp
          self.pos = _save3
          break
        end
        @result = begin;  a.push(*c) ; end
        _tmp = true
        unless _tmp
          self.pos = _save3
        end
        break
      end # end sequence
      break unless _tmp
    end
    _tmp = true
    unless _tmp
      self.pos = _save
      break
    end
    @result = begin;  list_item_from a ; end
    _tmp = true
    unless _tmp
      self.pos = _save
    end
    break
  end # end sequence
  set_failed_rule :_ListItem unless _tmp
  return _tmp
end