Login
Register
Dark Mode
Brightness
Ambient Glow – Questions list
Register
Profile
Edit Profile
Messages
My favorites
My Updates
Logout
Recent questions tagged compiler-tokenization
1
1 vote
2
2 answers
2.3k
2.3k views
Lexical Analysis
How will the compiler detect whether "if" is a keyword or an identifier?Please tell me the concept behind this.
Lovejeet Singh
2.3k
views
asked
Nov 7, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
usergate2018
usermod
+
–
1
1 vote
3
3 answers
5.4k
5.4k views
TANCET 2016 Lexical Analysis
Consider the following statements$S_{1}:$ The set of string described by a rule is called pattern associated with the token.$S_{2}:$ A lexeme is a sequence of character i...
Balaji Jegan
5.4k
views
asked
Oct 23, 2018
Compiler Design
tancet
compiler-design
lexical-analysis
compiler-tokenization
+
–
0
0 votes
1
1 answer
554
554 views
Fortran statement
The number of tokens in the fortran statements DO 10 I = 1.3 is ?
syncronizing
554
views
asked
Sep 22, 2018
Compiler Design
compiler-tokenization
+
–
0
0 votes
0
0 answers
810
810 views
tokens
Which of the following is not a token of c -program?A. 1.02e + 2B. # defineC. 123.33D. MAXplease explain why?
syncronizing
810
views
asked
Sep 22, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
0
0 votes
1
1 answer
7.2k
7.2k views
number of tokens
Question:Find the number of tokens in the following C code using lexical analyzer of the compiler.
syncronizing
7.2k
views
asked
Sep 21, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
+
–
1
1 vote
1
1 answer
7.5k
7.5k views
Find the no. of tokens
Find no of tokens in below program.#include<stdio.h>main(){ int I; int *pi = &I; //parent pointer scanf("%d",pi); printf("%d\n", I+5);}
sagar27
7.5k
views
asked
Sep 21, 2018
Compiler Design
compiler-tokenization
lexical-analysis
+
–
1
1 vote
0
0 answers
4.9k
4.9k views
Doubt in compiler
Whether a given pattern constitutes a token or not(a) depends on the source language(b) depends on the target language(c) depends on the compiler(d) none of the above com...
goluabhinan
4.9k
views
asked
Sep 16, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
0
0 votes
1
1 answer
1.3k
1.3k views
Printf("j=%d,&,j=%x",j&j)
Nageswara Rao G
1.3k
views
asked
Aug 22, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
1 vote
1
1 answer
1.0k
1.0k views
Token
No of token?$a b c d + y{^3}+(2-5+x$ $6/2$$ ;$Please suggest how to count token in this type of questions?
Mayankprakash
1.0k
views
asked
Aug 9, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
0
0 votes
4
4 answers
4.5k
4.5k views
Number of tokens
In this question we will take n-=n1 as n=n-n1 as 5 tokens or n-=n1 as 4 tokens ????The number of tokens in the following C-code$\qquad$ . int main(){int m=10;int n, n1;...
saumya mishra
4.5k
views
asked
Jun 12, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
test-series
+
–
0
0 votes
1
1 answer
370
370 views
compiler design
Consider the following statement while ( $\mathrm{i} \ll \mathrm{j}++$ ) func1(4);Number of tokens present in the above statement are $\qquad$ .
Shivani gaikawad
370
views
asked
Jun 7, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
test-series
+
–
6
6 votes
1
answers
1 answer
21.4k
21.4k views
Tokens vs Lexeme
What is the difference between lexeme and tokens?
Tech Geek
21.4k
views
asked
Apr 3, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
1 vote
1
answers
1 answer
5.9k
5.9k views
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
5.9k
views
asked
Mar 20, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
3
3 votes
4
answers
4 answers
1.9k
1.9k views
Number of tokens in int a[5];
Number of tokens in $\text{int a[5];}$
Deepak Singh 7
1.9k
views
asked
Mar 15, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
1
1 vote
1
1 answer
1.3k
1.3k views
cd lexical analysis token
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
1.3k
views
asked
Feb 1, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
true-false
+
–
1
1 vote
0
0 answers
755
755 views
GateForum Number of Tokens
# DEFINE M 100 int main() { // declare variables int n = 2020; return n%M; }The number of tokens in this program?
Mk Utkarsh
755
views
asked
Jan 20, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
1
1 vote
1
1 answer
1.9k
1.9k views
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??
Satyajeet Singh
1.9k
views
asked
Jan 17, 2018
Compiler Design
compiler-design
compiler-tokenization
+
–
5
5 votes
1
1 answer
3.7k
3.7k views
Token
How many tokens are there?1) int a /*b2) printf ("%
srestha
3.7k
views
asked
Jan 13, 2018
Compiler Design
compiler-tokenization
+
–
6
6 votes
1
1 answer
1.8k
1.8k views
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...
junaid ahmad
1.8k
views
asked
Jan 12, 2018
Compiler Design
compiler-tokenization
lexical-analysis
+
–
1
1 vote
2
answers
2 answers
1.7k
1.7k views
number of tokens
1) 82) 93) 124) 10
set2018
1.7k
views
asked
Jan 7, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
1 vote
1
1 answer
694
694 views
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 count1. *x is one token or two?2. &x is one token? please tell me i m rig...
mohitbawankar
694
views
asked
Jan 6, 2018
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
made-easy-test-series
+
–
2
2 votes
1
answers
1 answer
1.4k
1.4k views
Lexeme and Token
A lexeme is an identifier for a token?True or False
Mk Utkarsh
1.4k
views
asked
Jan 5, 2018
Compiler Design
compiler-tokenization
compiler-design
+
–
2
2 votes
2
2 answers
1.2k
1.2k views
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 toke...
Shubham Kumar Gupta
1.2k
views
asked
Dec 27, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
+
–
1
1 vote
1
1 answer
2.9k
2.9k views
Token
Which of the following not a token of C program?a)1.02e+2b)#definec)MAXd)123.33
srestha
2.9k
views
asked
Dec 23, 2017
Compiler Design
compiler-tokenization
+
–
6
6 votes
4
4 answers
10.4k
10.4k views
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 abov...
Shubhanshu
10.4k
views
asked
Nov 2, 2017
Compiler Design
compiler-design
compiler-tokenization
test-series
+
–
7
7 votes
4
4 answers
4.6k
4.6k views
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 accept...
itsvkp1
4.6k
views
asked
Nov 1, 2017
Compiler Design
lexical-analysis
compiler-design
compiler-tokenization
+
–
4
4 votes
2
answers
2 answers
4.4k
4.4k views
no of tokens
Q. 13 How many tokens are generated by the lexical analyzer, if the following program has no lexical error?main()\{int $x, y$;$\mathrm{fl} / *$ gate oat z ;$x=/^{*}$ exam...
Imarati Gupta
4.4k
views
asked
Oct 21, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
test-series
+
–
5
5 votes
1
answers
1 answer
6.9k
6.9k views
Compiler design: Counting number of tokens
void main(){i/*nt*/a=10;return;}Number of tokens in above code:?
rahul sharma 5
6.9k
views
asked
Oct 9, 2017
Compiler Design
compiler-design
compiler-tokenization
+
–
4
4 votes
1
1 answer
1.1k
1.1k views
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...
rahul sharma 5
1.1k
views
asked
Oct 9, 2017
Compiler Design
lexical-analysis
compiler-design
compiler-tokenization
+
–
2
2 votes
1
answers
1 answer
2.2k
2.2k views
compiler-design -tokens
rajoramanoj
2.2k
views
asked
Oct 6, 2017
Compiler Design
compiler-design
lexical-analysis
compiler-tokenization
numerical-answers
made-easy-test-series
+
–
Page:
« prev
1
2
3
4
next »