Why are there LR(0) parsers but not LL(0) parsers?
问题 I've been reading on both in Wikipedia, and noticed that although LR(0) parsers exist, there's no such thing as LL(0) parser. From what I read, I understand that the k in LL(k)/LR(k) means how many characters the parser can see beyond the current character that it's currently working on. So my question is, why is there no such thing as LL(0) parser even though LR(0) exists? 回答1: The difference has to do with what the k means in LR(k) versus LL(k). In LL(k), the parser maintains information