Lookahead terminal and lookahead symbols both are different things?

1 vote

Which of the following is true ?

- Canonical $LR$ parser is $LR (1)$ parser with single look ahead terminal
- All $LR(K)$ parsers with $K > 1$ can be transformed into $LR(1)$ parsers.
- Both $(A)$ and $(B)$
- None of the above

1 vote

**Answer : C**

A canonical LR parser or LR(1) parser is an LR(k) parser for k=1, i.e. with a single look-ahead terminal. The special attribute of this parser is that all LR(k) parser's with k>1 can be transformed into a LR(1) parser.

Reference : Canonical LR parser