5 extern void kparseerror(char *s);
9 field [A-Za-z0-9][-A-Za-z0-9]*
11 desktop [dD][eE][sS][kK][tT][oO][pP]
12 execute [eE][xX][eE][cC][uU][tT][eE]
13 restart [rR][eE][sS][tT][aA][rR][tT]
18 ^[ \t]*#.*\n kparselineno++;
19 {number} kparselval.integer = atoi(kparsetext); return INTEGER;
20 {execute} kparselval.string = g_strdup(kparsetext); return EXECUTE;
21 {restart} kparselval.string = g_strdup(kparsetext); return RESTART;
22 {desktop} kparselval.string = g_strdup(kparsetext); return DESKTOP;
23 {field} kparselval.string = g_strdup(kparsetext); return FIELD;
26 kparselval.string = g_strdup(kparsetext+1);
27 if (kparselval.string[kparseleng-2] != '"') {
28 g_warning("improperly terminated string on line %d\n",
32 kparselval.string[kparseleng-2] = '\0';
37 \n kparselineno++; return *yytext;