edited by
833 views
2 votes
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.

edited by

2 Answers

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

considered as a single token.

Related questions

2 votes
2 votes
5 answers
2
Mizuki asked Nov 11, 2018
1,838 views
What it the number of tokens in the following line?printf("%d numbers.", &x);
1 votes
1 votes
2 answers
3
Lovejeet Singh asked Nov 7, 2018
1,186 views
How will the compiler detect whether "if" is a keyword or an identifier?Please tell me the concept behind this.