From 7c3e88ad9372e5fd74aff8cd4be47c23e426aafc Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 2 Jun 2010 17:20:32 +0200 Subject: [PATCH] parser: implement matching on the window id --- src/cmdparse.y | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/cmdparse.y b/src/cmdparse.y index 51690a59..ab3dd4cc 100644 --- a/src/cmdparse.y +++ b/src/cmdparse.y @@ -238,6 +238,13 @@ criteria: current_match.con_id = atoi($3); printf("id as int = %d\n", current_match.con_id); } + | TOK_ID '=' STR + { + printf("criteria: window id = %s\n", $3); + /* TODO: correctly parse number */ + current_match.id = atoi($3); + printf("window id as int = %d\n", current_match.id); + } ; operations: -- 2.39.5