You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
av.umsg("By reversing each production in the resulting Right Linear grammar, we will get the the Left Linear grammar for the reverse of $L^R$. So, we have the Left Linear grammar for $(L^R)^R = L$.");
136
140
av.step();
137
141
138
-
av.umsg("Reversing $S\\rightarrow aS$ will give $S\\rightarrow Sa$");
142
+
//frame 26
143
+
av.umsg(Frames.addQuestion("q26"));
139
144
grammerMatrix.highlight(0);
140
145
av.step();
141
-
//frame 25
142
-
av.umsg("Reversing $S\\rightarrow aS$ will give $S\\rightarrow Sa$");
143
-
grammerMatrix.modifyProduction(0,2,"$Sa$")
144
-
av.step();
145
-
//frame 26
146
-
av.umsg("Reversing $A\\rightarrow bA$ will give $A\\rightarrow Ab$");
146
+
147
+
//frame 27
148
+
av.umsg(Frames.addQuestion("q27"));
149
+
grammerMatrix.modifyProduction(0,2,"$Sa$");
147
150
grammerMatrix.unhighlight(0);
148
151
grammerMatrix.highlight(1);
149
152
av.step();
150
-
//frame 27
151
-
av.umsg("Reversing $A\\rightarrow bA$ will give $A\\rightarrow Ab$");
152
-
grammerMatrix.modifyProduction(1,2,"$Ab$")
153
-
av.step();
153
+
154
154
//frame 28
155
-
av.umsg("Reversing $A\\rightarrow cS$ will give $A\\rightarrow Sc$");
155
+
av.umsg(Frames.addQuestion("q28"));
156
+
grammerMatrix.modifyProduction(1,2,"$Ab$")
156
157
grammerMatrix.unhighlight(1);
157
158
grammerMatrix.highlight(2);
158
159
av.step();
160
+
159
161
//frame 29
160
-
av.umsg("Reversing $A\\rightarrow cS$ will give $S\\rightarrow Sc$");
162
+
av.umsg(Frames.addQuestion("q29"));
161
163
grammerMatrix.modifyProduction(2,2,"$Sc$")
162
-
av.step();
163
-
//frame 30
164
-
av.umsg("Reversing $F\\rightarrow bA$ will give $F\\rightarrow Ab$");
165
164
grammerMatrix.unhighlight(2);
166
165
grammerMatrix.highlight(3);
167
166
av.step();
168
-
//frame 31
169
-
av.umsg("Reversing $F\\rightarrow bA$ will give $F\\rightarrow Ab$");
167
+
//frame 30
168
+
av.umsg(Frames.addQuestion("q30"));
170
169
grammerMatrix.modifyProduction(3,2,"$Ab$")
171
170
av.step();
172
-
//frame 32
173
-
av.umsg("The resulting Grammar is the Left Linear Grammar for the original Right Linear Grammar.")
171
+
//frame 31
172
+
av.umsg("Exactly. The resulting Grammar is the Left Linear Grammar for the original Right Linear Grammar.")
0 commit comments