RP35part1.init() RP35part1.program RP35part1.answer

Consider the following program:

program

True or False? The program listed above is syntactically correct according to the concrete syntax of SLang 3 that we discussed in class.

correctAnswer
  • True
  • False

In this problem, you may NOT take into account the semantic correctness of the program. You are only asked to check whether this program is syntactically correct.

All you need to do is check whether this program can be generated according to the BNF grammar for SLang 3.