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

Discussion

State whether the following is true or false.
Testing an arbitrary syntax directed definition for circularity is computationally cheap.

  • A.False
  • B.True only at large scales
  • C.False only at small scales
  • D.True

Answer: A

Correct answer: False

Testing an arbitrary definition for circularity is exponential in the worst case, which is why compilers do not attempt it. They restrict themselves to the S-attributed and L-attributed classes instead, both of which are non-circular by construction and evaluable in a known order.

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

Post your comment

Please log in or register to post a comment.