Manisha Pandey
no need of parse tree
just check whether it has any recursive production rule as suggested by Lorin Ahmed
or just draw finite automata of that grammar n if it contains any loop or self loop then the language generated by grammar is infinite
Manisha Pandey
no need of parse tree
just check whether it has any recursive production rule as suggested by Lorin Ahmed
or just draw finite automata of that grammar n if it contains any loop or self loop then the language generated by grammar is infinite