# PARSER EXPECTED: ";" Error Solustion

**URL:** <https://discourse.mc-stan.org/t/parser-expected-error-solustion/24405>\
**Category:** General\
**Tags:** rstan\
**Created:** [September 14, 2021, 12:52pm UTC](https://discourse.mc-stan.org/t/parser-expected-error-solustion/24405 "2021-09-14T12:52:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmabaei](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mmabaei/32/14573_2.png) [@mmabaei](https://discourse.mc-stan.org/u/mmabaei)\
**Post date:** [September 14, 2021, 12:52pm UTC](https://discourse.mc-stan.org/t/parser-expected-error-solustion/24405/1 "2021-09-14T12:52:28Z")

</div>

Hi fellows

I am writting my stan code and in one of the line it always give me error as PARSER EXPECTED: “;”

Error message:  
[Error in stanc(filename, allow\_undefined = TRUE) : failed to parse Stan model ‘Latent\_variable\_GP’ due to the above error.]

For simplicity of reading i just put the codes that i put in model part

…stan  
model{  
rho ~ normal(0,3);  
alpha ~ normal(0,1);  
sigma ~ normal(0,1);  
eta ~ normal(0,1)  
y1 ~ normal(f,sigma); \<---------- Error Appear here and highlight is on parameter y1  
}

I already defined all relevant varibles in my code, this is the only error in the stan code. Coudl you kindly advice me on this?

Kindly Regards,

---

<div class="post-metadata">

**Author:** ![andrjohns](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/andrjohns/32/15297_2.png) [@andrjohns](https://discourse.mc-stan.org/u/andrjohns)\
**Post date:** [September 14, 2021, 1:17pm UTC](https://discourse.mc-stan.org/t/parser-expected-error-solustion/24405/2 "2021-09-14T13:17:07Z")

</div>

It looks like you need a `;` after `eta ~ normal(0,1)`

---

<div class="post-metadata">

**Author:** ![mmabaei](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/mmabaei/32/14573_2.png) [@mmabaei](https://discourse.mc-stan.org/u/mmabaei)\
**Post date:** [September 15, 2021, 8:27am UTC](https://discourse.mc-stan.org/t/parser-expected-error-solustion/24405/3 "2021-09-15T08:27:50Z")

</div>

oh, thats true. I do appreciate your time
