COMPILER DESIGN

SYNTAX ANALYSIS

ROLE OF THE PARSER

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Rule section in LEX always starts with
A
/*
B
//
C
##
D
None of the above
Explanation: 

Detailed explanation-4: -A lex program consists of three sections: a section containing definitions, a section containing translations, and a section containing functions. The style of this layout is similar to that of yacc.

Detailed explanation-5: -In Lex the actions are written in C. The third section holds whatever auxiliary procedures are needed by the actions. Alternatively these procedures can be compiled separately and loaded with the lexical analyzer.

There is 1 question to complete.