Recent questions tagged lexical-analysis

1 votes
2 answers
61
consider this c code:wheil(1){ printf("hi"); }will this code fragment gives lexical error or not. If not then who is responsible for this error.
1 votes
1 answer
64
1. macros are not considered as tokens in tokenizing.2.#include considered as single token2.stdio.h considered as single token. Are the above statements true?
12 votes
5 answers
65
int main() { int 1a, b; Printf("\nGate 2018"); Printf("%d",x); }How many types of error are there in this code?
3 votes
0 answers
66
what type of error is caused if function name is same as a keyword name?
6 votes
1 answer
67
Is this line a/*b successfully generating the token's or it give lexical error ? if it is given the lexical error then why so ?I think it will give lexical error because...
1 votes
2 answers
68
1 votes
1 answer
71
What is the diffrence between Lexical error , Syntax error and semantic error..?Please explain with this examplevoid main(){int total-value, Num=2,sum=5,var1;5=Num;var1=2...
1 votes
1 answer
72
in c programming which of the following is not used as a token seprator during lexical analysis?a)white spaceb)commentc)semicolond)none of thesetoken seprator means??
7 votes
4 answers
73
9 votes
2 answers
75
Q) For each of the following C statements state whether they contain lexical error, syntax error, semantic error or no error(along with reason) -i) inta radius =5;ii) x=1...
5 votes
1 answer
77
Marcos & prepocessor directive (#define, #include) are handle by which phase of compiler ?? Or it is not input to compiler,it is alredy handled in preprocessor???Please e...
3 votes
1 answer
80
How are constants recogonized by the lexical analyser like interger 1234 floating point 1234.56789and what happens when we have -1234 and -1234.56789 how many token...
10 votes
3 answers
81
2 votes
1 answer
82
This screenshot is token from the book Ullman,How can following be a lexical error? because "elipseSize" should have a token recorded as an identifier.
3 votes
1 answer
83
The action of parsing the source program into the proper syntactic classes is known as1. Lexical Analysis2. Syntax Analysis3. Interpretation Analysis4. Parsing
9 votes
2 answers
84
MISSPELLING OF KEYWORDS CAUSE WHICH TYPE OF ERROR- SYNTAX ERROR OR LEXICAL ERROR??printf("%d") without any integer argument will cause which type of error??
1 votes
1 answer
86
Which language is used to describe the semantics and syntax of c?1. attribute grammar.2 syntax tree3. none
5 votes
1 answer
87
14 votes
4 answers
88
The output of a lexical analyzer isA parse treeIntermediate codeMachine codeA stream of tokens
2 votes
2 answers
90
printf("Hello);In the statement given above,is there any lexical error or not ?