From 03f53c1b0de9a03d37f65ef457ddb8802bf8ceac Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?=
 <stepan@adjemian.eu>
Date: Thu, 9 Jul 2020 11:26:28 +0200
Subject: [PATCH] Allow empty shocks(overwrite) block.

---
 src/DynareBison.yy | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/DynareBison.yy b/src/DynareBison.yy
index 78a087d9..9349f5dd 100644
--- a/src/DynareBison.yy
+++ b/src/DynareBison.yy
@@ -1089,6 +1089,7 @@ pound_expression: '#' symbol EQUAL hand_side ';'
 
 shocks : SHOCKS ';' shock_list END ';' { driver.end_shocks(false); }
        | SHOCKS '(' OVERWRITE ')' ';' shock_list END ';' { driver.end_shocks(true); }
+       | SHOCKS '(' OVERWRITE ')' ';'  END ';' { driver.end_shocks(true); }
        ;
 
 shock_list : shock_list shock_elem
-- 
GitLab