retagged by
4,274 views
1 votes
1 votes
Top down parsers parse LL(K) grammar ,Now if we talk about recursive descent parsers they just scan each input symbol and then perform their respective function calls ,or even LL(1) parsers also see the input symbol and accordingly chose the production and then push the symbols onto stack so then where do they see the look-ahead symbols, I am not getting this .
retagged by

1 Answer

0 votes
0 votes
The input symbol is the look ahead. We would have constructed the parsing table to behave according to the current input symbol. In recursive descent parsers we don't have parsing table hence we need backtracking. Also note that recursive descent parsers also will accept all LL(1) languages.

Related questions

2 votes
2 votes
1 answer
1
sripo asked Nov 10, 2018
3,248 views
Can you give an example which is not LL(1) but is CLR(1)
0 votes
0 votes
1 answer
2
Rahul Ranjan 1 asked Mar 19, 2018
4,964 views
Given a grammar :$E \rightarrow E + T / T$$T \rightarrow i$Can I directly say that grammar is not $LL(1)$ because $LL(1)$ can't parse Left Recursive Grammar, without dra...