Problem with Yacc

Hi guys,

I'm struggling with a simple but at the same time complicated problem related to yacc :wall: Maybe someone can help me with this :confused:
I'm working on a big project and it's hard for me to show the problem exactly on my code, but I will give a model of it.
Before I had this kind of grammar:

R:
   a1 b1 c1 d1
  |a2 b2 c2 d2
  ;

where a1,....d2 are grammar rules described later.
I have done this kind of change

R:
  new1 c1 d1
 |new2 c2 d2
 ;

new1:
       a1 b1
       ;

new2:
       a2 b2
       ;

After this I don't get any s/r or r/r errors. Everything seems to work perfect, when I run all tests we have, but I have one fail, which is about finding compilation errors in source code which we try to parse with this yacc parser :wall: :frowning:

Please tell me what can be a problem related to my change...it seems to be legal but causes a fail.

Thanks.

Not a yacc guru, but does new1: have to be upstream of use, for one pass compile?

Hi DGPickett,

Sorry for my stupid request, but could you please explain what do you mean?
Actually I'm not a master of yacc, maybe that is why I couldn't really understand what you meant to say :confused:

Thanks.