Login
Register
Dark Mode
Brightness
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged compiler-tokenization
0
votes
1
answer
31
compiler design
Shivani gaikawad
159
views
Shivani gaikawad
asked
Jun 7, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
test-series
+
–
6
votes
1
answer
32
Tokens vs Lexeme
What is the difference between lexeme and tokens?
What is the difference between lexeme and tokens?
Tech Geek
19.7k
views
Tech Geek
asked
Apr 3, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
votes
1
answer
33
Lexical Error
void main() { int total-value, Num=2,sum=5,var1; 5=Num; var1=2; sum=num*1; if(sum=var1) { sum=sum+1 } } Here, is $\text{"total-value"}$ a lexical error?
void main() { int total-value, Num=2,sum=5,var1; 5=Num; var1=2; sum=num*1; if(sum=var1) { sum=sum+1 } }Here, is $\text{"total-value"}$ a lexical error?
Jason
3.4k
views
Jason
asked
Mar 20, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
3
votes
4
answers
34
Number of tokens in int a[5];
Number of tokens in $\text{int a[5];}$
Number of tokens in $\text{int a[5];}$
Deepak Singh 7
1.2k
views
Deepak Singh 7
asked
Mar 15, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
1
votes
1
answer
35
cd lexical analysis token
1. macros are not considered as tokens in tokenizing. 2.#include considered as single token 2.stdio.h considered as single token. Are the above statements true?
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?
ankit_thawal
714
views
ankit_thawal
asked
Feb 1, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
true-false
+
–
1
votes
0
answers
36
GateForum Number of Tokens
# DEFINE M 100 int main() { // declare variables int n = 2020; return n%M; } The number of tokens in this program?
# DEFINE M 100 int main() { // declare variables int n = 2020; return n%M; }The number of tokens in this program?
Mk Utkarsh
428
views
Mk Utkarsh
asked
Jan 20, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
1
votes
1
answer
37
self doubt
Find no of tokens in following code: #define square(x) x*x int main(){ int a=square(2); printf("%d", a); return 0; } Does macro expansion effect the tokens count??
Find no of tokens in following code:#define square(x) x*x int main(){ int a=square(2); printf("%d", a); return 0; }Does macro expansion effect the tokens count??
Satyajeet Singh
744
views
Satyajeet Singh
asked
Jan 17, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
5
votes
1
answer
38
Token
How many tokens are there? 1) int a /*b 2) printf ("%
How many tokens are there?1) int a /*b2) printf ("%
srestha
1.7k
views
srestha
asked
Jan 13, 2018
Compiler Design
compiler-tokenization
+
–
6
votes
1
answer
39
Lexical error or No of tokens
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 we don't find */ here
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...
junaid ahmad
1.2k
views
junaid ahmad
asked
Jan 12, 2018
Compiler Design
compiler-tokenization
lexical-analysis
+
–
1
votes
2
answers
40
number of tokens
1) 8 2) 9 3) 12 4) 10
1) 82) 93) 124) 10
set2018
655
views
set2018
asked
Jan 7, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
2
votes
1
answer
41
me test number of tokens
here i got 44(i count &x and *x as one one) tokens but nas is 53 doubt ----> in general we count 1. *x is one token or two? 2. &x is one token? please tell me i m right or wrong . for this q i think & x are two tokens bcs there is space?
here i got 44(i count &x and *x as one one) tokens but nas is 53 doubt in general we count1. *x is one token or two?2. &x is one token? please tell me i m rig...
mohitbawankar
375
views
mohitbawankar
asked
Jan 6, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
made-easy-test-series
+
–
2
votes
1
answer
42
Lexeme and Token
A lexeme is an identifier for a token? True or False
A lexeme is an identifier for a token?True or False
Mk Utkarsh
1.0k
views
Mk Utkarsh
asked
Jan 5, 2018
Compiler Design
compiler-tokenization
compiler-design
+
–
2
votes
2
answers
43
Lexical Analysis
What are different set of characters which are taken as single token in lexical analysis in compiler design? For eg. Charaters under double quotes are taken as single token, post-increment and pre-increment is taken as single token etc.
What are different set of characters which are taken as single token in lexical analysis in compiler design?For eg. Charaters under double quotes are taken as single toke...
Shubham Kumar Gupta
814
views
Shubham Kumar Gupta
asked
Dec 27, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
votes
1
answer
44
Token
Which of the following not a token of C program? a)1.02e+2 b)#define c)MAX d)123.33
Which of the following not a token of C program?a)1.02e+2b)#definec)MAXd)123.33
srestha
1.5k
views
srestha
asked
Dec 23, 2017
Compiler Design
compiler-tokenization
+
–
4
votes
4
answers
45
Tokens, Lexeme and Pattern
There are 40 tokens in this question. But I have doubt that what should be the wording of the question "The number of LEXEMES generated by the Lexical Analyzer in the above program is _______ " OR "The number of ... - Keyword, Operators, Identifiers, Constant, Punctuation Symbol and String Constants. How token and lexeme are different from each other?
There are 40 tokens in this question.But I have doubt that what should be the wording of the question "The number of LEXEMES generated by the Lexical Analyzer in the abov...
Shubhanshu
5.3k
views
Shubhanshu
asked
Nov 2, 2017
Compiler Design
compiler-design
compiler-tokenization
test-series
+
–
7
votes
4
answers
46
lexical error
if there is miss spelling in some keyword in a program then this misspelled keyword will be treated as lexical errors or it will be treated as a new identifier and accepted as a token ?? ex - whiel (1) ; here while is misspelled as whiel
if there is miss spelling in some keyword in a program then this misspelled keyword will be treated as lexical errors or it will be treated as a new identifier and accept...
itsvkp1
3.2k
views
itsvkp1
asked
Nov 1, 2017
Compiler Design
lexical-analysis
compiler-design
compiler-tokenization
+
–
4
votes
2
answers
47
no of tokens
Imarati Gupta
2.5k
views
Imarati Gupta
asked
Oct 21, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
test-series
+
–
5
votes
1
answer
48
Compiler design: Counting number of tokens
void main() { i/*nt*/a=10; return; } Number of tokens in above code:?
void main(){i/*nt*/a=10;return;}Number of tokens in above code:?
rahul sharma 5
5.5k
views
rahul sharma 5
asked
Oct 9, 2017
Compiler Design
compiler-design
compiler-tokenization
+
–
4
votes
1
answer
49
Compiler Lexical analyzer
int main() { print("%d",a); return 0; } If i execute,i will get error as:- prog.c:112:17: error: 'a' undeclared (first use in this function) printf("%d",a); Now as this is the semantic error,so how ... analyzer can give the row number and column number of error as it tokenize the entire program but is this also possible in sematic analyzer?
int main(){ print("%d",a); return 0;}If i execute,i will get error as:- prog.c:112:17: error: 'a' undeclared (first use in this function) printf("%d",a);Now as this...
rahul sharma 5
705
views
rahul sharma 5
asked
Oct 9, 2017
Compiler Design
lexical-analysis
compiler-design
compiler-tokenization
+
–
2
votes
1
answer
50
compiler-design -tokens
rajoramanoj
1.2k
views
rajoramanoj
asked
Oct 6, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
made-easy-test-series
+
–
3
votes
1
answer
51
token count for shorthand operators
How many tokens are there in the following statement: x >> = 2; In general, are shorthand operators counted as a single token as ">>=" or double as ">>" and "=". Or anything else?
How many tokens are there in the following statement:x > = 2; In general, are shorthand operators counted as a single token as ">>=" or double as ">>" and "=". Or anythin...
Rishabh Gupta 2
1.3k
views
Rishabh Gupta 2
asked
Oct 2, 2017
Compiler Design
compiler-tokenization
+
–
6
votes
1
answer
52
Number of tokens in the C program
Given answer is 25, while my answer is 26, they have considered -10.0 as single token, which is wrong?
Given answer is 25, while my answer is 26, they have considered -10.0 as single token, which is wrong?
Manu Thakur
4.5k
views
Manu Thakur
asked
Sep 29, 2017
Compiler Design
compiler-design
compiler-tokenization
+
–
10
votes
3
answers
53
Lexical analyser, Tokens
When do we count ++(post increment or pre increment) as 1 or 2 token ?
When do we count ++(post increment or pre increment) as 1 or 2 token ?
junaid ahmad
3.7k
views
junaid ahmad
asked
Sep 28, 2017
Compiler Design
compiler-tokenization
lexical-analysis
+
–
2
votes
1
answer
54
Compilers: Lexical Error
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.
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.
Manu Thakur
1.5k
views
Manu Thakur
asked
Sep 26, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
votes
1
answer
55
Tokens and lexems
What is difference between lexems and tokens please explain with example
What is difference between lexems and tokens please explain with example
Swami patil
1.4k
views
Swami patil
asked
Sep 13, 2017
Compiler Design
compiler-design
compiler-tokenization
descriptive
+
–
3
votes
1
answer
56
Identify Tokens
Calculate total no of Tokens and also determine there types:- a) a9997.7b884.cddf2.77 b) 74>><<2gfh0012 c) a>=ab.785!lklk d) a9997.b884.100intcddfloat2.77 Q2) Differentiate between Tokens, Lexeme and Pattern with the help of example Eg. int a;
Calculate total no of Tokens and also determine there types:-a) a9997.7b884.cddf2.77b) 74>><<2gfh0012c) a>=ab.785!lklkd) a9997.b884.100intcddfloat2.77Q2) Differentia...
Shubhanshu
574
views
Shubhanshu
asked
Aug 29, 2017
Compiler Design
compiler-design
compiler-tokenization
+
–
9
votes
2
answers
57
classification of lexical and syntactic errors in complier phases
I am writing down some errors and its type with a reason.If there something wrong please correct it with a valid reason. 1.fi(a==10) this is not a lexical error, because lexical analyzer cannot tell whether fi is a misspelling ... token. but this says it is streams of valid tokens 6.int d=10.10.10 lexical error as invalid num token.
I am writing down some errors and its type with a reason.If there something wrong please correct it with a valid reason.1.fi(a==10)this is not a lexical error, because le...
reena_kandari
2.2k
views
reena_kandari
asked
Aug 14, 2017
Compiler Design
lexical-analysis
compiler-tokenization
+
–
1
votes
2
answers
58
Finding number of tokens
Find the number of tokens in the below C statement: result = x > y ? "x is greater than y" : "x is less than or equal to y"; My doubt is should we consider the ternary operator "? :" as 1 token or two separate tokens "?" and ":" ??
Find the number of tokens in the below C statement:result = x y ? "x is greater than y" : "x is less than or equal to y";My doubt is should we consider the ternary opera...
just_bhavana
4.2k
views
just_bhavana
asked
Aug 7, 2017
Compiler Design
compiler-design
compiler-tokenization
+
–
0
votes
0
answers
59
tokens
find number of tokens? 1 .abc*def+xyz=5 2. abc*+
find number of tokens?1 .abc*def+xyz=52. abc*+
akankshadewangan24
384
views
akankshadewangan24
asked
Apr 22, 2017
Compiler Design
compiler-tokenization
+
–
2
votes
4
answers
60
Compilers Principles Techniques and Tool Ch-3 Lexical Analysis
What will be the tokens formed for ',' and '{' ?
What will be the tokens formed for ',' and '{' ?
tanyagt99
913
views
tanyagt99
asked
Mar 26, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
Page:
« prev
1
2
3
next »
Email or Username
Show
Hide
Password
I forgot my password
Remember
Log in
Register