What advantages do LL parsers have over LR parsers?

后端 未结 6 1479
感情败类
感情败类 2021-01-30 04:36

What advantages do LL parsers have over LR parsers to warrant their relative popularity in today\'s parser generator tools?

According to Wikipedia, LR parsing appears to

6条回答
  •  有刺的猬
    2021-01-30 04:42

    One reason that comes to mind is, it's much easier to do a language that needs arbitrary backtracking (cough C++) in an LL paradigm.

提交回复
热议问题