diff options
Diffstat (limited to 'src/config-bison.y')
-rw-r--r-- | src/config-bison.y | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/config-bison.y b/src/config-bison.y index 45c59b1..9d22b0b 100644 --- a/src/config-bison.y +++ b/src/config-bison.y @@ -74,7 +74,8 @@ static struct lt_list_head ln_names; %token ERROR %token ERR_DO ERR_DIR ERR_RUN ERR_GO ERR_RETURN ERR_N %token ERR_PROG ERR_ARGS ERR_FILTER ERR_SEQ ERR_START -%token ERR_SIGSEGV ERR_AUTOMATED ERR_REPLAY ERR_KEEP +%token ERR_SIGSEGV ERR_AUTO ERR_REPLAY ERR_KEEP +%token ERR_TYPE %union { @@ -400,15 +401,22 @@ error_run_def ERR_START ERR_N '=' VALUE | error_run_def ERR_TYPE ERR_SEQ { + if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_SEQ)) + ABORT("failed to add run"); } | -error_run_def ERR_TYPE ERR_AUTOMATED +error_run_def ERR_TYPE ERR_AUTO { + if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_AUTO)) + ABORT("failed to add run"); } | error_run_def ERR_TYPE ERR_REPLAY { + if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_REPLAY)) + ABORT("failed to add run"); } +| error_go: ERR_GO NAME list_names_comma |