The catch here is right the parse table along with the print statements and print when you encounter print(‘+’)
or print(num.val)
Don't print the + that is in the start of + T R
Here don't get into confusion of printing the first plus before T
we have to print + that is given as semantic rule after we processed T then we have to print this {print(‘+’);}
not the intial + before T