ERROR: syntax error, unexpected $end

This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location where you will have to reset your password.
Forum rules
This forum is closed. You can read the posts but cannot write. We have migrated the forum to a new location (https://forum.dynare.org) where you will have to reset your password.

ERROR: syntax error, unexpected $end

Postby Gitte » Thu May 23, 2013 9:13 pm

Hi,

I am trying to run my model in dynare version 4.3.0, but I keep getting the error message below.

Starting preprocessing of the model file ...
ERROR: rot.mod:1.1: syntax error, unexpected $end

Error using dynare (line 114)
DYNARE: preprocessing failed


I am confused if this has to do with an error related to a missing/inapropriate "end;" or if it has something to do with the first line (as it says 1.1:syntax error)?
I have spent hours looking through the code trying to find the error, so I am desperately hoping that one of you can tell me what is wrong??

Thank you in advance,
Gitte
Attachments
rot.mod
(6.97 KiB) Downloaded 139 times
Gitte
 
Posts: 3
Joined: Thu May 23, 2013 9:02 pm

Re: ERROR: syntax error, unexpected $end

Postby jpfeifer » Fri May 24, 2013 2:12 pm

Try upgrading Dynare. Your mod-file runs on my machine, except for the later problem that
The following endogenous variables aren't present at the current period in the model:
pi_f_hat
t_hat
------------
Johannes Pfeifer
University of Cologne
https://sites.google.com/site/pfeiferecon/
jpfeifer
 
Posts: 6940
Joined: Sun Feb 21, 2010 4:02 pm
Location: Cologne, Germany

Re: ERROR: syntax error, unexpected $end

Postby selima » Wed Aug 07, 2013 12:36 pm

Good morning I have dynare 4.3.2 but I have the same error
ERROR: NKKtaylord.mod:217.1: syntax error, unexpected $end

??? Error using ==> dynare at 114
DYNARE: preprocessing failed
please can you tell me what is the problem? thank you very much
Attachments
NKKtaylord.mod
(6.3 KiB) Downloaded 119 times
selima
 
Posts: 46
Joined: Thu Jan 10, 2013 5:13 pm

Re: ERROR: syntax error, unexpected $end

Postby donihue » Wed Aug 07, 2013 5:29 pm

You have made three small mistakes:
- you failed to match "/*" with a "*/" at end of definitions
- you fogot to include "rhoee" in the list of parameters
- you have 2 equations for "zeta"; you need to eliminate one of them
If you correct these, the model runs

Regards
Donihue
donihue
 
Posts: 34
Joined: Mon Sep 12, 2011 1:12 pm

Re: ERROR: syntax error, unexpected $end

Postby Gitte » Fri Aug 30, 2013 2:28 pm

jpfeifer wrote:Try upgrading Dynare. Your mod-file runs on my machine, except for the later problem that
The following endogenous variables aren't present at the current period in the model:
pi_f_hat
t_hat


Thank you for your reply!
Gitte
 
Posts: 3
Joined: Thu May 23, 2013 9:02 pm


Return to Dynare help

Who is online

Users browsing this forum: No registered users and 8 guests