Machine-translated by Google. Questions are authored in English.
Top

Discussion

Match each recovery technique with its characteristic action.
List I
A. panic mode
B. phrase level
C. error productions
D. global correction
List II
1. recognise an anticipated mistake
2. skip tokens to a synchronising point
3. find the minimal repair to the input
4. insert or delete a symbol locally

  • A.A-3, B-1, C-4, D-2
  • B.A-2, B-4, C-1, D-3
  • C.A-4, B-2, C-1, D-3
  • D.A-2, B-4, C-3, D-1

Answer: B

Correct answer: A-2, B-4, C-1, D-3

Four strategies of increasing ambition. Panic mode discards tokens until it reaches a synchronising symbol such as a semicolon. Phrase level recovery makes a local repair, inserting or deleting a single symbol. Error productions build the anticipated mistake into the grammar so it can be recognised and reported precisely. And global correction seeks the smallest set of changes making the input legal - theoretically attractive and too costly to use.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.