diff options
Diffstat (limited to 'apps/plugins/searchengine/token.h')
-rw-r--r-- | apps/plugins/searchengine/token.h | 57 |
1 files changed, 31 insertions, 26 deletions
diff --git a/apps/plugins/searchengine/token.h b/apps/plugins/searchengine/token.h index 183f365c59..12065511ac 100644 --- a/apps/plugins/searchengine/token.h +++ b/apps/plugins/searchengine/token.h | |||
@@ -16,34 +16,39 @@ | |||
16 | * KIND, either express or implied. | 16 | * KIND, either express or implied. |
17 | * | 17 | * |
18 | ****************************************************************************/ | 18 | ****************************************************************************/ |
19 | #define TOKEN_INVALID -1 | 19 | #define TOKEN_INVALID -1 |
20 | #define TOKEN_EOF 0 // EOF | 20 | #define TOKEN_EOF 0 // EOF |
21 | #define TOKEN_NOT 1 // "not" | 21 | #define TOKEN_NOT 1 // "not" |
22 | #define TOKEN_AND 2 // "and" | 22 | #define TOKEN_AND 2 // "and" |
23 | #define TOKEN_OR 3 // "or" | 23 | #define TOKEN_OR 3 // "or" |
24 | #define TOKEN_GT 4 // '>' | 24 | #define TOKEN_GT 4 // '>' |
25 | #define TOKEN_GTE 5 // '>=' | 25 | #define TOKEN_GTE 5 // '>=' |
26 | #define TOKEN_LT 6 // '<' | 26 | #define TOKEN_LT 6 // '<' |
27 | #define TOKEN_LTE 7 // '<=' | 27 | #define TOKEN_LTE 7 // '<=' |
28 | #define TOKEN_EQ 8 // '==' | 28 | #define TOKEN_EQ 8 // '==' |
29 | #define TOKEN_NE 9 // '!=' | 29 | #define TOKEN_NE 9 // '!=' |
30 | #define TOKEN_CONTAINS 10 // "contains" | 30 | #define TOKEN_CONTAINS 10 // "contains" |
31 | #define TOKEN_EQUALS 11 // "equals" | 31 | #define TOKEN_EQUALS 11 // "equals" |
32 | #define TOKEN_LPAREN 12 // '(' | 32 | #define TOKEN_STARTSWITH 12 |
33 | #define TOKEN_RPAREN 13 // ')' | 33 | #define TOKEN_ENDSWITH 13 |
34 | #define TOKEN_NUM 14 // (0..9)+ | 34 | #define TOKEN_LPAREN 14 // '(' |
35 | #define TOKEN_NUMIDENTIFIER 15 // year, trackid, bpm, etc. | 35 | #define TOKEN_RPAREN 15 // ')' |
36 | #define TOKEN_STRING 16 // (?)+ | 36 | #define TOKEN_NUM 16 // (0..9)+ |
37 | #define TOKEN_STRINGIDENTIFIER 17 // album, artist, title, genre ... | 37 | #define TOKEN_NUMIDENTIFIER 17 // year, trackid, bpm, etc. |
38 | #define TOKEN_STRING 18 // (?)+ | ||
39 | #define TOKEN_STRINGIDENTIFIER 19 // album, artist, title, genre ... | ||
40 | #define TOKEN_SHUFFLE 20 | ||
41 | #define TOKEN_PLAYTIMELIMIT 21 | ||
38 | 42 | ||
39 | #define INTVALUE_YEAR 1 | 43 | #define INTVALUE_YEAR 1 |
40 | #define INTVALUE_RATING 2 | 44 | #define INTVALUE_RATING 2 |
41 | #define INTVALUE_PLAYCOUNT 3 | 45 | #define INTVALUE_PLAYCOUNT 3 |
42 | #define INTVALUE_TITLE 4 | 46 | #define INTVALUE_AUTORATING 4 |
43 | #define INTVALUE_ARTIST 5 | 47 | #define INTVALUE_TITLE 14 |
44 | #define INTVALUE_ALBUM 6 | 48 | #define INTVALUE_ARTIST 15 |
45 | #define INTVALUE_GENRE 7 | 49 | #define INTVALUE_ALBUM 16 |
46 | #define INTVALUE_FILENAME 8 | 50 | #define INTVALUE_GENRE 17 |
51 | #define INTVALUE_FILENAME 18 | ||
47 | 52 | ||
48 | /* static char *spelling[] = { "not", "and", "or",">",">=","<", "<=","==","!=", | 53 | /* static char *spelling[] = { "not", "and", "or",">",">=","<", "<=","==","!=", |
49 | "contains","(",")" }; */ | 54 | "contains","(",")" }; */ |