%token <str> CONST
%token <n> NUM
%token <str> VAR
+%token <str> KW_DISCARD
%token <str> KW_PIPE KW_MAIL KW_COPY
%token '(' ')' '{' '}' ';'
%nonassoc KW_IF
$$->pt.arrow.kw_left = $1;
$$->pt.arrow.kw_right = $3;
}
+ | left ARROW KW_DISCARD { //FIXME: actually left does not make sense here
+ $$ = tree_malloc(ST_ARROW);
+ $$->pt.arrow.s = NULL;
+ $$->pt.arrow.kw_left = NULL;
+ $$->pt.arrow.kw_right = "discard";
+ }
;
left: /* empty */ { $$ = NULL;}