Last active
August 29, 2015 14:11
-
-
Save gamefreak/19700227ed5e289ba977 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
expression => or_expression | |
or_expression => and_expression ["OR" and_expression]* | |
and_expression => predicate ["AND" predicate]* | |
predicate => "(" expression ")" | "NOT" expression | subreddit_test | score_test | day_test | |
subreddit_test => "subreddit IS " /^\/r\/[a-z0-9]+$/i | |
| "subreddit MATCHES" /^\/r\/[a-z0-9*]+$/i | |
score_test => "score" "AT" ("LEAST"|"MOST") -? NUMBER | |
day_test => "today" "IS" day_of_week ["," day_of_week]* | |
| "today" "IS A" part_of_week | |
day_of_week => "monday"|"tuesday"|"wednesday"|...|"sunday" | |
part_of_week => "weekday"|"weekend" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment