diff options
Diffstat (limited to 'src/config-bison.y')
-rw-r--r-- | src/config-bison.y | 32 |
1 files changed, 26 insertions, 6 deletions
diff --git a/src/config-bison.y b/src/config-bison.y index 9d22b0b..cdd94be 100644 --- a/src/config-bison.y +++ b/src/config-bison.y @@ -73,9 +73,10 @@ static struct lt_list_head ln_names; %token OPT_ARGS_STRING_POINTER_LENGTH %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_PROG ERR_ARGS ERR_FILTER ERR_SEQ %token ERR_SIGSEGV ERR_AUTO ERR_REPLAY ERR_KEEP %token ERR_TYPE +%token ERR_START ERR_AFTER ERR_ENTRIES ERR_EXITS ERR_OF %union { @@ -86,6 +87,7 @@ static struct lt_list_head ln_names; %type <s> NAME %type <s> BOOL %type <l> VALUE +%type <s> start_after_sym %% entry: @@ -394,11 +396,6 @@ error_run_def ERR_RETURN list_names_comma ABORT("failed to add run"); } | -error_run_def ERR_START ERR_N '=' VALUE -{ - error_app_run->start.n = $5; -} -| error_run_def ERR_TYPE ERR_SEQ { if (lt_error_run_type(scfg, &error_app_run, LT_ERROR_RUN_TYPE_SEQ)) @@ -417,6 +414,29 @@ error_run_def ERR_TYPE ERR_REPLAY ABORT("failed to add run"); } | +error_run_def ERR_START ERR_AFTER VALUE ERR_ENTRIES start_after_sym +{ + if (lt_error_run_start_after(scfg, &error_app_run, + 1, $4, $6)) + ABORT("failed to add run"); +} +| +error_run_def ERR_START ERR_AFTER VALUE ERR_EXITS start_after_sym +{ + if (lt_error_run_start_after(scfg, &error_app_run, + 0, $4, $6)) + ABORT("failed to add run"); +} +| + +start_after_sym: ERR_OF NAME +{ + $$ = $2; +} +| +{ + $$ = NULL; +} error_go: ERR_GO NAME list_names_comma |