The SLR(1) parses AFAIK does not have any lookahead with it then why do we write it as SLR(1) and not as SLR(0). The thing about parsers which I read online taught me that if it's LR(K) then K represent the number of lookahead symbols. Thereby it's not making much sense to me.

Kindly help me here

Thanks in advance!

  • 2
    $\begingroup$ Please change your title to reflect your actual question. Make it focused. $\endgroup$ – Yuval Filmus Dec 27 '18 at 15:10
  • $\begingroup$ Is it fine now? $\endgroup$ – Anonymous Developer Dec 27 '18 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.