1. STUDENT NO. 202016633
MODULE TITLE: SYSTEM PROGRAMMING (OS and COMPILERS)
MODULE CODE: 4CPS321
ASSIGNMENT TOPIC: SYNTAX TREES AND ABSTRACT TREES
2. A
The production rules of Mini-Triangle does not permit the use of
floating point numbers, only integer literals are allowed. As the
compiler runs down the node its catches a type error, it then flags
the error and stops compiling the code.
5. D
The “Comma” is not one of the terminal symbols found in Mini-
Triangle, therefore the compiler will catch the use of an illegal
token, flags the error then stops the compilation process until
the error is fixed.