In operator precedence parsing we have the rule that production cannot have two adjacent non-terminals or an epsilon production, so this production, S--> ab is allowed but not S--> AB, A->a and B->b, though they are giving us the same output. Why so?
Rule of Operator precedence Parser is Any two variable should not adjacent to each other.If they are adjacent to each other then convert it!
eg- In C compiler,no two variables are adjacent
ab!=a*b this is not allowed in our c compiler