Recent questions tagged lexical-analysis

0 0 votes
1 1 answer
149
149 views
Arrange the following tasks of Lexical Analyzer in correct sequence:Token Generation.Removal of comments/White sphere.Buffering and reading source characters.Return token...
1 1 vote
1 1 answer
122
122 views
Match the LIST-I with LIST-IILIST-IInputLIST-IICompiler PhaseA.Syntax TreeI.Code GeneratorB.Character StreamII.Syntax AnalyzerC.Intermediate RepresentationIII.Semantic An...
1 1 vote
2 2 answers
565
565 views
Consider the following C statements:$\texttt{char *str1 = "Hello;}$ $\quad // \text{stmt } S_1$$\texttt{char *str2 = "Hello;";}$ $\quad // \text{stmt } S_2$$\texttt{int ...
0 0 votes
2 2 answers
430
430 views
Arrange the following stages of parsing in the correct order as they typically occur in the compilation process.Lexical AnalysisSematic AnalysisSyntax AnalysisIntermediat...
1 1 vote
0 0 answers
230
230 views
Match List - I with List - II according to input to the compiler phase that process it:$$\begin{array}{lll} & \text{List - I} & \text{List - II} \\\text{(A)} & \text...
2 2 votes
2 answers 2 answers
602
602 views
WHICH OF THE FOLLOWING is/are TRUE FOR SYMBOL TABLE ??
2 2 votes
1 1 answer
193
193 views
Which data structure is used by the lexical analyzer in a compiler?StackQueueSymbol tableTree
2 2 votes
3 answers 3 answers
853
853 views
In C program, what happens to the #include part? Does it gets counted or used for preprocessing and not passed as token?In the above question i am getting answer 39 total...
0 0 votes
2 2 answers
751
751 views
Like Example Above please answer this questionQ5. Implement a+b*(c+d)-e/finto: a). Quadruples.b). Triples.c). Indirect triples.
0 0 votes
1 1 answer
795
795 views
Please Answer this question 4. Discuss design issues in code generation. Generate target code for the following basic block. t1 : = a + b t2 : = c ...
1 1 vote
2 2 answers
752
752 views
How to differentiate between Lexical, semantic and syntax error from a given code snippet.Why is this lexical error and not syntax error? $ y = 0x5i; $
1 1 vote
2 2 answers
751
751 views
Consider the following statements:(A) LL (k) grammars have one to one correspondence with DCFLs.(B) LR (k) grammars have one to one correspondence with CFLs. A is true bu...
2 2 votes
3 3 answers
950
950 views
Conisder the following program:Main(){ int x = 10;If (x<20 ;Elsey = 20;}When lexical analyzer scanning the above program, how many lexical errors can be produced?
0 0 votes
2 2 answers
689
689 views
Sir are the comments in the code deleted by the Lexical Analyser or the Pre-Processor? @Arjun sir??