You can use this in testcases to mark specific sections:
$i3->command('nop before trying to crash')->recv;
leads to the following output in the i3 logfile:
-------------------------------------------------
NOP: before trying to crash
-------------------------------------------------
px { return TOK_PX; }
or { return TOK_OR; }
ppt { return TOK_PPT; }
+nop { BEGIN(WANT_WS_STRING); return TOK_NOP; }
restore { BEGIN(WANT_WS_STRING); return TOK_RESTORE; }
mark { BEGIN(WANT_WS_STRING); return TOK_MARK; }
%token TOK_PX "px"
%token TOK_OR "or"
%token TOK_PPT "ppt"
+%token TOK_NOP "nop"
%token TOK_CLASS "class"
%token TOK_ID "id"
| level
| mark
| resize
+ | nop
;
exec:
}
;
+nop:
+ TOK_NOP WHITESPACE STR
+ {
+ printf("-------------------------------------------------\n");
+ printf(" NOP: %s\n", $<string>3);
+ printf("-------------------------------------------------\n");
+ free($<string>3);
+ }
+ ;
+
resize:
TOK_RESIZE WHITESPACE resize_way WHITESPACE direction resize_px resize_tiling
{