• edited by
1,205 views
2 2 votes

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.

2 Answers

3 3 votes
Operator attached with another operator and form a meaning full operator(ex:<=,>=,>>,<<,==,++,--)  

considered as a single token.
Position:
Show:

Related questions

2 2 votes
3 answers 3 answers
854
854 views
Nitesh_Jangir asked Jan 10, 2025
854 views
In C program, what happens to the #include part? Does it gets counted or used for preprocessing and not passed as token?In the above question i am getting answer 39 total...
3 3 votes
1 1 answer
4.6k
4.6k views
Hirak asked Jun 9, 2019
4,575 views
The above diagram is Transition Diagrams for identifiers. As we can see that the identifier is said to be accepted if it starts with a letter and ends with a valid delimi...
2 2 votes
5 5 answers
3.4k
3.4k views
Mizuki asked Nov 11, 2018
3,390 views
What it the number of tokens in the following line?printf("%d numbers.", &x);
1 1 vote
2 2 answers
2.3k
2.3k views
Lovejeet Singh asked Nov 7, 2018
2,263 views
How will the compiler detect whether "if" is a keyword or an identifier?Please tell me the concept behind this.