Search results for lexical-analysis

44 votes
3 answers
1
In a compiler, keywords of a language are recognized duringparsing of the programthe code generationthe lexical analysis of the programdataflow analysis
28 votes
5 answers
3
Which data structure in a compiler is used for managing information about variables and their attributes?Abstract syntax treeSymbol tableSemantic stackParse table
0 votes
1 answer
5
0 votes
1 answer
6
Like Example Above please answer this questionQ5. Implement a+b*(c+d)-e/finto: a). Quadruples.b). Triples.c). Indirect triples.
0 votes
1 answer
7
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 votes
1 answer
8
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 votes
2 answers
9
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 votes
2 answers
11
Sir are the comments in the code deleted by the Lexical Analyser or the Pre-Processor? @Arjun sir??
6 votes
1 answer
12
1 votes
2 answers
13
15 votes
2 answers
17
Using longer identifiers in a program will necessarily lead to:Somewhat slower compilationA program that is easier to understandAn incorrect programNone of the above
0 votes
2 answers
19
6 votes
7 answers
20
Find the type of error produced by the following C code.main() { in/*comment t x; floa/*comment*/t gate; }Lexical errorsyntax errorboth a) and b) None of these