parser: implement matching on the window id

This commit is contained in:
Michael Stapelberg 2010-06-02 17:20:32 +02:00
parent 14a312c152
commit 7c3e88ad93
1 changed files with 7 additions and 0 deletions

View File

@ -238,6 +238,13 @@ criteria:
current_match.con_id = atoi($<string>3); current_match.con_id = atoi($<string>3);
printf("id as int = %d\n", current_match.con_id); printf("id as int = %d\n", current_match.con_id);
} }
| TOK_ID '=' STR
{
printf("criteria: window id = %s\n", $<string>3);
/* TODO: correctly parse number */
current_match.id = atoi($<string>3);
printf("window id as int = %d\n", current_match.id);
}
; ;
operations: operations: