29 views
Can a regular grammar be ambiguous? If so then plz give some example.
| 29 views
+2
yes possible

$S\rightarrow aS|Sa|a$
0
It can be ambiguous but never be inherently ambiguous
0
@shaik Masthan what is inherently ambiguous
0

dangling else is the best example for inherently ambiguity

https://en.wikipedia.org/wiki/Dangling_else