Code that will returns dates from a recurrence rule?

Given a recurrence rule, for example iCal RRULE (see
iCalendar spec: 4.8.5.4 Recurrence Rule), does anyone have code that
will provide that valid dates for the rule?