Login
Register
@
Dark Mode
Profile
Edit my Profile
Messages
My favorites
Register
Activity
Q&A
Questions
Unanswered
Tags
Subjects
Users
Ask
Previous Years
Blogs
New Blog
Exams
Dark Mode
Recent questions tagged compiler-tokenization
0
votes
1
answer
31
compiler design
Shivani gaikawad
asked
in
Compiler Design
Jun 7, 2018
by
Shivani gaikawad
168
views
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?
Tech Geek
asked
in
Compiler Design
Apr 3, 2018
by
Tech Geek
19.7k
views
compiler-design
lexical-analysis
compiler-tokenization
1
vote
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?
Jason
asked
in
Compiler Design
Mar 20, 2018
by
Jason
3.4k
views
compiler-design
compiler-tokenization
3
votes
4
answers
34
Number of tokens in int a[5];
Number of tokens in $\text{int a[5];}$
Deepak Singh 7
asked
in
Compiler Design
Mar 15, 2018
by
Deepak Singh 7
1.2k
views
compiler-design
compiler-tokenization
1
vote
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?
ankit_thawal
asked
in
Compiler Design
Feb 1, 2018
by
ankit_thawal
721
views
compiler-design
lexical-analysis
compiler-tokenization
true-false
1
vote
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?
Mk Utkarsh
asked
in
Compiler Design
Jan 20, 2018
by
Mk Utkarsh
437
views
compiler-design
compiler-tokenization
1
vote
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??
Satyajeet Singh
asked
in
Compiler Design
Jan 17, 2018
by
Satyajeet Singh
782
views
compiler-design
compiler-tokenization
5
votes
1
answer
38
Token
How many tokens are there? 1) int a /*b 2) printf ("%
srestha
asked
in
Compiler Design
Jan 13, 2018
by
srestha
1.8k
views
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
junaid ahmad
asked
in
Compiler Design
Jan 12, 2018
by
junaid ahmad
1.2k
views
compiler-tokenization
lexical-analysis
1
vote
2
answers
40
number of tokens
1) 8 2) 9 3) 12 4) 10
set2018
asked
in
Compiler Design
Jan 7, 2018
by
set2018
688
views
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?
mohitbawankar
asked
in
Compiler Design
Jan 6, 2018
by
mohitbawankar
382
views
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
Mk Utkarsh
asked
in
Compiler Design
Jan 5, 2018
by
Mk Utkarsh
1.0k
views
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.
Shubham Kumar Gupta
asked
in
Compiler Design
Dec 27, 2017
by
Shubham Kumar Gupta
827
views
compiler-design
lexical-analysis
compiler-tokenization
1
vote
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
srestha
asked
in
Compiler Design
Dec 23, 2017
by
srestha
1.6k
views
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?
Shubhanshu
asked
in
Compiler Design
Nov 2, 2017
by
Shubhanshu
5.4k
views
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
itsvkp1
asked
in
Compiler Design
Nov 1, 2017
by
itsvkp1
3.2k
views
lexical-analysis
compiler-design
compiler-tokenization
4
votes
2
answers
47
no of tokens
Imarati Gupta
asked
in
Compiler Design
Oct 21, 2017
by
Imarati Gupta
2.6k
views
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:?
rahul sharma 5
asked
in
Compiler Design
Oct 9, 2017
by
rahul sharma 5
5.5k
views
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?
rahul sharma 5
asked
in
Compiler Design
Oct 9, 2017
by
rahul sharma 5
722
views
lexical-analysis
compiler-design
compiler-tokenization
2
votes
1
answer
50
compiler-design -tokens
rajoramanoj
asked
in
Compiler Design
Oct 6, 2017
by
rajoramanoj
1.2k
views
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?
Rishabh Gupta 2
asked
in
Compiler Design
Oct 2, 2017
by
Rishabh Gupta 2
1.3k
views
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?
Manu Thakur
asked
in
Compiler Design
Sep 29, 2017
by
Manu Thakur
4.6k
views
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 ?
junaid ahmad
asked
in
Compiler Design
Sep 28, 2017
by
junaid ahmad
3.8k
views
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.
Manu Thakur
asked
in
Compiler Design
Sep 26, 2017
by
Manu Thakur
1.6k
views
compiler-design
lexical-analysis
compiler-tokenization
1
vote
1
answer
55
Tokens and lexems
What is difference between lexems and tokens please explain with example
Swami patil
asked
in
Compiler Design
Sep 13, 2017
by
Swami patil
1.4k
views
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;
Shubhanshu
asked
in
Compiler Design
Aug 29, 2017
by
Shubhanshu
582
views
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.
reena_kandari
asked
in
Compiler Design
Aug 14, 2017
by
reena_kandari
2.3k
views
lexical-analysis
compiler-tokenization
1
vote
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 ":" ??
just_bhavana
asked
in
Compiler Design
Aug 7, 2017
by
just_bhavana
4.2k
views
compiler-design
compiler-tokenization
0
votes
0
answers
59
tokens
find number of tokens? 1 .abc*def+xyz=5 2. abc*+
akankshadewangan24
asked
in
Compiler Design
Apr 22, 2017
by
akankshadewangan24
387
views
compiler-tokenization
2
votes
4
answers
60
Compilers Principles Techniques and Tool Ch-3 Lexical Analysis
What will be the tokens formed for ',' and '{' ?
tanyagt99
asked
in
Compiler Design
Mar 26, 2017
by
tanyagt99
925
views
compiler-design
lexical-analysis
compiler-tokenization
Page:
« prev
1
2
3
next »
Subscribe to GATE CSE 2024 Test Series
Subscribe to GO Classes for GATE CSE 2024
Quick search syntax
tags
tag:apple
author
user:martin
title
title:apple
content
content:apple
exclude
-tag:apple
force match
+apple
views
views:100
score
score:10
answers
answers:2
is accepted
isaccepted:true
is closed
isclosed:true
Recent Posts
Post GATE 2024 Guidance [Counseling tips and resources]
GATE CSE 2024 Result Responses
[Project Contest] Pytorch backend support for MLCommons Cpp Inference implementation
Participating in MLCommons Inference v4.0 submission (deadline is February 23 12pm IST)
IIITH PGEE 2024 Test Series by GO Classes
Subjects
All categories
General Aptitude
(3.5k)
Engineering Mathematics
(10.4k)
Digital Logic
(3.6k)
Programming and DS
(6.2k)
Algorithms
(4.8k)
Theory of Computation
(6.9k)
Compiler Design
(2.5k)
Operating System
(5.2k)
Databases
(4.8k)
CO and Architecture
(4.0k)
Computer Networks
(4.9k)
Artificial Intelligence
(79)
Machine Learning
(48)
Data Mining and Warehousing
(25)
Non GATE
(1.4k)
Others
(2.7k)
Admissions
(684)
Exam Queries
(1.6k)
Tier 1 Placement Questions
(17)
Job Queries
(80)
Projects
(11)
Unknown Category
(870)
64.3k
questions
77.9k
answers
244k
comments
80.0k
users
Recent questions tagged compiler-tokenization
Recent Blog Comments
category ?
Hi @Arjun sir, I have obtained a score of 591 in ...
download here
Can you please tell about IIT-H mtech CSE self...
Please add your admission queries here:...