5 votes 5 votes How many tokens are there? 1) int a /*b 2) printf ("% Compiler Design compiler-tokenization + – srestha asked Jan 13, 2018 srestha 1.7k views answer comment Share Follow See all 23 Comments See all 23 23 Comments reply Show 20 previous comments Anu007 commented Jan 16, 2018 reply Follow Share yes it is not lexical error according to me. 1 votes 1 votes Ashwin Kulkarni commented Jan 16, 2018 reply Follow Share @Anu sir so what is finally answer for this Q? 2nd one is invalid and what about 1st one ? Thanks :) 0 votes 0 votes srestha commented Jan 18, 2018 reply Follow Share 2) will also give lexical error 0 votes 0 votes Please log in or register to add a comment.
0 votes 0 votes Both will give lexical error, as in first one comment doesn't end, we will not final state (make dfa for this regx) for the second case same reason Vegeta answered Sep 15, 2018 Vegeta comment Share Follow See all 0 reply Please log in or register to add a comment.