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

Discussion

Arrange these stages of designing a syntax directed translation.
1. write the semantic rules for every production
2. decide what information each construct must carry
3. place the actions in the right sides at valid positions
4. classify each attribute as synthesised or inherited

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

Answer: B

Deciding the information comes first, its direction of flow second, and the rules third. Action placement is the final step and is constrained by the classification already made. Getting the classification wrong is discovered at this point, uncomfortably late.

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

Post your comment

Please log in or register to post a comment.