COMPILER DESIGN

INTERMEDIATE CODE GENERATION

SYNTAX TREES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Two Important lexical categories are
A
White Space
B
Comments
C
None of the mentioned
D
White Space & Comments
Explanation: 

Detailed explanation-1: -Explanation: Two important common lexical categories are white space and comments. 5. It has encoded within it information on the possible sequences of characters that can be contained within any of the tokens it handles.

Detailed explanation-2: -Lexical analysis is split into two levels. First level lexical analysis splits the source program into broad categories of lexemes like identifiers, numbers and strings. Second level lexical analysis then distinguishes between different identifiers etc. By [0-9] we mean any one of the set of characters from 0 to 9.

Detailed explanation-3: -In programming language, keywords, constants, identifiers, strings, numbers, operators and punctuations symbols can be considered as tokens.

There is 1 question to complete.