21070122188-CCL-Assignment 2
21070122188-CCL-Assignment 2
Papo No
EXPERIMENT:
Data
EXeERImENT 2
%{
int line_count = 0, word_count = 0, space_count = 0, comment_count =0;
int identifier_count = 0;
int keyword_count = 0;
char *keywords[] = {
"int", "float", "double", "char", "void", "if", "else", "while", "for",
"return", "switch", "case", "break", "continue", "default", "typedef",
"struct", "union", "enum", "sizeof", "static", "extern", "const", "volatile",
"unsigned", "signed", "long", "short", "goto", "auto", "register", NULL
};
OUTPUT