Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \/\/ {
- BEGIN(COMMENT);
- comment = "//";
- }
- <COMMENT>([^/\n]|((\/)+[^/\n]))*(\/+)\n {
- comment += string(yytext);
- }
- <COMMENT>([^/\n]|((\/)+[^/\n]))* {
- BEGIN(INITIAL);
- comment += string(yytext);
- fprintf(f_log, "Line No. %d: Token <COMMENT> Lexeme %s found\n", line_count, comment.c_str());
- line_count = yylineno;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement