Implementation of LEXICAL ANALYZER for IF STATEMENT with the help of Lex Tool in CPP- Program- #include<iostream> #include<fstream> #include<stdlib.h> #include<string.h> #include<ctype.h> using namespace std; int isKeyword(char buffer[]) { char keywords[32][10] = { "auto", "break", "case", "char", "const", "continue", "default", "do", "double", "else", "enum", "extern", "float", "for", "goto", "if", "int", "long", "register", "return", "short", "signed", "sizeof", "static", "struct", "switch", "typedef", "union", "unsigned", ...
competitive programming guides eg.algorithms,problems,tricks ,datastructure based on cp.