cron expression parser #127
No reviewers
Labels
No labels
Roadmap
V
bug
docs
duplicate
enhancement
good first issue
help wanted
idea
invalid
question
wontfix
Idea
Roadmap
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No project
No assignees
1 participant
Due date
No due date set.
Dependencies
No dependencies set.
Reference: vieter-v/vieter#127
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cron"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR implements a parser for a subset of the cron expression syntax. I want to merge this separately from the actual cron implementation itself because I'd like the testing workflow to be added to dev first. It's also already a rather big PR, so making it any bigger would not be a good idea.
The syntax for the cron expressions are of the form
a b c d, where c & d are optional & will be replaced by*if absent. Each of the four parts can be one or multiple (divided using,) of*,n,n-m,*/n,n/morn-m/o, with n, m & o being positive whole numbers.I'm keeping this PR in WIP until I've written an adequate amount of tests for both the parser & the 'next occurence' calculation function.
I'm tempted to merge this PR prematurely. It's a critical part for developing all other parts of the improved builder system, & testing it will take a long time anyways so it might be useful to just do this throughout development of the 0.3.0 release.
WIP: cron expression parserto cron expression parser