edited by
204 views
0 votes
0 votes

This question concerns the grammar

  $S\rightarrow A1B$
  $A\rightarrow 0A|\in$
  $B\rightarrow 0B|1B\in$

  1. Show that this grammar is unambiguous.
  2. Find a grammar for the same language that is ambiguous and demonstrate its ambiguity.
edited by

Please log in or register to answer this question.

Related questions

0 votes
0 votes
0 answers
2
admin asked Apr 6, 2019
295 views
This question concerns the grammar $S\rightarrow A1B$ $A\rightarrow 0A|\in$ $B\rightarrow 0B|1B\in$ Is your grammar is unambiguous$?$ If not,redesign it to be unambi...
0 votes
0 votes
0 answers
4