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

Discussion

The property that makes a language easy to scan is

  • A.that its tokens can be recognised by a finite automaton
  • B.that its grammar has no left recursion in any production
  • C.that all its identifiers are declared before they are used
  • D.that its statements are terminated by an explicit semicolon

Answer: A

Token patterns are regular expressions and are recognised by finite automata, which is what makes scanner generation mechanical. Left recursion and declaration order are properties bearing on parsing and semantic analysis instead.

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

Post your comment

Please log in or register to post a comment.