hegza / memoparsa-rs

A parser library for my own memo formats.
1 stars 1 forks source link

recurring events parsing #2

Open tupsut opened 5 years ago

tupsut commented 5 years ago

Both/all of the current test cases feature a set of annually recurring events (and in the case of alpha, also more frequently recurring events). Parsing these has not been implemented - annually recurring events just get duplicates created for the current year, and others do not get parsed at all (as the months are not marked).

It should be quite easy to handle annual events (creating them for a few years in the future) and weekly/monthly events, but more complicated repetition patterns will need some more elaborate planning.

hegza commented 5 years ago

Agreed. Though it will likely need a stateful parser. Maybe something to wrap the current line-by-line implementation. I'm getting a better idea of the possible requirements here. I'll look into it once the library is in actually useful state.