Question: QUESTION 2 Match the following task with compiler phase: 1. Syntax Analysis Using Regular Expression 2. Semantic Analysis Three Address Code 3. Scanner * Type


QUESTION 2 Match the following task with compiler phase: 1. Syntax Analysis Using Regular Expression 2. Semantic Analysis Three Address Code 3. Scanner * Type Checking 4. Code Generation Register Allocation 5. Intermediate Code Generator Giving the following patterns in lex file, Divide the input into lexemes and show the matched rule. Input abbbccaaa lex file: 1 %{ 2 %} 3 4 { printf("1 ");} { printf("2");} { printf("3");;} { printf("4 ");} 5 a 6 c(aab) 7 ab*c 8 b*aa*(c|b) 9 %% 10 11 int main() 12 { 13 yylex(); 14 }| the output is: None 341 3342 321
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
