From ddc8eee38895827b395e63432fd3f48d179ba725 Mon Sep 17 00:00:00 2001 From: Houtan Bastani Date: Tue, 25 Aug 2015 10:30:05 +0200 Subject: [PATCH] preprocessor: allow first_obs option of estimation to accept a vector of integers. #1034 --- preprocessor/DynareBison.yy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/preprocessor/DynareBison.yy b/preprocessor/DynareBison.yy index 73dfb1816..647a75014 100644 --- a/preprocessor/DynareBison.yy +++ b/preprocessor/DynareBison.yy @@ -1640,7 +1640,7 @@ estimation_options_list : estimation_options_list COMMA estimation_options estimation_options : o_datafile | o_nobs - | o_first_obs + | o_est_first_obs | o_prefilter | o_presample | o_lik_algo @@ -2625,6 +2625,11 @@ o_conditional_variance_decomposition : CONDITIONAL_VARIANCE_DECOMPOSITION EQUAL | CONDITIONAL_VARIANCE_DECOMPOSITION EQUAL vec_int_number { driver.option_vec_int("conditional_variance_decomposition", $3); } ; +o_est_first_obs : FIRST_OBS EQUAL vec_int + { driver.option_vec_int("first_obs", $3); } + | FIRST_OBS EQUAL vec_int_number + { driver.option_vec_int("first_obs", $3); } + ; o_first_obs : FIRST_OBS EQUAL INT_NUMBER { driver.option_num("first_obs", $3); }; o_data_first_obs : FIRST_OBS EQUAL date_expr { driver.option_date("firstobs", $3); } ; o_data_last_obs : LAST_OBS EQUAL date_expr { driver.option_date("lastobs", $3); } ;