in Compiler Design
595 views
4 votes
4 votes
The number of tokens in the following expression is what?
+ * * * < = & > { - + + + } ( >> ) + & &
in Compiler Design
by
595 views

4 Comments

Sudsho if it was ++++ we would have taken ++ and ++ as two tokens and not +.am I right or wrong?
0
0
yes right..longest matching rule is followed everytime....why this happening?
because we give all the regular expressions for keywords,identifiers,operators etc in the beginning itself to our lexical analyser...it will do patttern matching thereafter...
3
3
okay..:)
1
1

Please log in or register to answer this question.

Related questions