COMPILER DESIGN

SYNTAX ANALYSIS

ERROR RECOVERY IN SYNTAX ANALYSIS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Terminals represent character strings that are recognized by ____
A
Syntax analyser
B
lexical analyser
C
semantic analyzer
D
none of these
Explanation: 

Detailed explanation-1: -Semantic analysis is the task of ensuring that the declarations and statements of a program are semantically correct, i.e, that their meaning is clear and consistent with the way in which control structures and data types are supposed to be used.

Detailed explanation-2: -Terminals are the basic symbols from which strings are formed. A set of productions (P). The productions of a grammar specify the manner in which the terminals and non-terminals can be combined to form strings.

Detailed explanation-3: -It takes source code as input. It reads the source program one character at a time and converts it into meaningful lexemes.

There is 1 question to complete.