Operator Grammar : It is a CFG which is used to generally define the mathematical operations with some restrictions on it like
a) It shouldn't have any epsilon productions.
b) In the right hand side of any production, there should not be any two variables side by side.
For example : E -> E+T/T
T -> T*F/F
F -> id
Unambiguous and operator grammar..
Operator Precedence grammar : An operator precedence grammar is an operator grammar in which the parsing automaton can decide whether to shift or reduce based simply on a precedence relationship between the terminal closest to the top of the parsing stack and the look ahead token.
Operator precedence parser can parse some of the ambiguous grammars using the operator precedence table. Intuitively, ambiguity is resolved by using precedence of operator.
For example : E -> E+E/E*E/id
Ambiguous and operator grammar..