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

Discussion

The two pointers maintained by a buffered scanner mark

  • A.the beginning and the end of the input file that is being scanned
  • B.the current token and the token that will follow it next
  • C.the two halves of the buffer that are currently in memory
  • D.the beginning of the current lexeme and the character being examined

Answer: D

One pointer stays at the lexeme start while the other advances. When a pattern is matched the lexeme lies between them, and the start pointer is then moved forward ready for the next lexeme. Retraction moves the forward pointer back without disturbing the lexeme beginning.

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

Post your comment

Please log in or register to post a comment.