COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
words of a language constitute
A
set of terminals
B
set of non terminals
C
both
D
none
Explanation: 

Detailed explanation-1: -A CFG consists of the following components: a set of terminal symbols, which are the characters of the alphabet that appear in the strings generated by the grammar. a set of nonterminal symbols, which are placeholders for patterns of terminal symbols that can be generated by the nonterminal symbols.

Detailed explanation-2: -A terminal symbol is one of a set of symbols that appear explicitly in the specified language. A terminal symbol appears in boldface type. Examples of terminal symbols are: A, a, TRUE.

Detailed explanation-3: -Terminals are the basic symbols from which strings are formed. A set of non-terminals . Non-terminals are syntactic variables that denote sets of strings. The non-terminals define sets of strings that help define the language generated by the grammar.

There is 1 question to complete.