Step 2: Earlier approach was wrong. First add rule for declaration in bison,done.