Error Dynare Model RBC

Hi. I’m trying to run my code and the error is unexpected endogenous variable and Dynare indicates an unexpected error on the line (line 38) . Please could you help me to find out from what is this?
ERROR: inv_publica_mex.mod: line 38, col 102;syntax error, unexpected ;
DYNARE: Error using dynare (line 269)
DYNARE: preprocessing failed

I’m attaching my file. I would appreciate any help.


inv_publica_mex.mod (3.4 KB)

The error message means that there is an unexpected ; on line 38. Most likely because of unclosed parentheses

Indeed, you have various closing brackets missing.