version 1.42, 2021/08/22 13:00:28 |
version 1.43, 2021/08/23 11:04:21 |
|
|
|
|
arg = xcalloc(1, sizeof *arg); |
arg = xcalloc(1, sizeof *arg); |
arg->type = CMD_PARSE_STRING; |
arg->type = CMD_PARSE_STRING; |
arg->string = xstrdup($2); |
arg->string = $2; |
TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); |
TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); |
} |
} |
| optional_assignment TOKEN arguments |
| optional_assignment TOKEN arguments |
|
|
|
|
arg = xcalloc(1, sizeof *arg); |
arg = xcalloc(1, sizeof *arg); |
arg->type = CMD_PARSE_STRING; |
arg->type = CMD_PARSE_STRING; |
arg->string = xstrdup($2); |
arg->string = $2; |
TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); |
TAILQ_INSERT_HEAD(&$$->arguments, arg, entry); |
} |
} |
|
|
|
|
{ |
{ |
$$ = xcalloc(1, sizeof *$$); |
$$ = xcalloc(1, sizeof *$$); |
$$->type = CMD_PARSE_STRING; |
$$->type = CMD_PARSE_STRING; |
$$->string = xstrdup($1); |
$$->string = $1; |
} |
} |
| EQUALS |
| EQUALS |
{ |
{ |
$$ = xcalloc(1, sizeof *$$); |
$$ = xcalloc(1, sizeof *$$); |
$$->type = CMD_PARSE_STRING; |
$$->type = CMD_PARSE_STRING; |
$$->string = xstrdup($1); |
$$->string = $1; |
} |
} |
| '{' argument_statements |
| '{' argument_statements |
{ |
{ |
|
|
goto out; |
goto out; |
values[count].type = ARGS_COMMANDS; |
values[count].type = ARGS_COMMANDS; |
values[count].cmdlist = pr->cmdlist; |
values[count].cmdlist = pr->cmdlist; |
values[count].cmdlist->references++; |
|
break; |
break; |
} |
} |
count++; |
count++; |