recategorized by
2,865 views
1 votes
1 votes

Which of the following is true ?

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

1 Answer

1 votes
1 votes

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

Answer:

Related questions

2 votes
2 votes
1 answer
2
makhdoom ghaya asked Jul 22, 2016
3,710 views
In a two-pass assembler, symbol table is Generated in first pass Generated in second pass Not generated at all Generated and used only in second pass
2 votes
2 votes
1 answer
3
makhdoom ghaya asked Jul 24, 2016
1,602 views
Match the following $:$ $\begin{array}{clcl} & \textbf{List – I} && \textbf{List – II} \\ \text{a.} & \text{Call Control protocol} &\text{i.} & \text{Interface b...
0 votes
0 votes
1 answer
4
makhdoom ghaya asked Jul 23, 2016
1,161 views
________ model is designed to bring prices down by increasing the number of customers who buy a particular product at once.Economic Order QuantityInventory Data MiningDem...