edited by
570 views
0 votes
0 votes
Say I have a grammar, S→ AB

                                        A→ a

                                        B→ b

This grammar is not operator grammar as 2 non terminals are lying side by side, but can be converted to an operator grammar. S→ ab , A→ a , B→ b

here i have a doubt, operator grammar as the name suggests should have a operator in between right? how can we operate even two  terminal symbols when placed side by side? Isn’t it same as placing 2 non-terminal symbol side by side?
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
1
Rahul Ranjan 1 asked May 29, 2018
514 views
Given an operator grammar :$E - E * F / F + E / F$$F - F - F / id$ Is this table correct for the above operator grammar ?
0 votes
0 votes
1 answer
2
Sanjay Sharma asked Oct 29, 2017
1,431 views
Given P,Q,R are non- terminals and r , s ,t are terminals ,which of the following grammar rule(s) violate the requirements of an operator grammarI P->QRII P->QsRIII P- ...
0 votes
0 votes
2 answers
3