Lolcode execution

profilesaiiaf1992
CDCFlex.l

%{ /*Definitions*/ %} /*Rules for the language*/ %% [ \t] ; // ignore all whitespace BTW[^\r\n]*\r?\n {printf("Single line comments %s\n", yytext);} OBTW(.|\r|\n)*TLDR\r?\n {printf("Multiple line comments %s\n", yytext);} "HAI" { printf("Program started\n"); } "KTHXBYE" { printf("program Ended\n"); } "VISIBLE" { printf("Printing a variable to output\n"); } "GIMMEH" { printf("Take an input from the user\n"); } "I HAS A" { printf("Declare a Variable\n"); } "ITZ" { printf("Assign some value to the variable\n"); } "SUM OF" { printf("Sum of two Operations\n"); } "DIFF OF" { printf("Difference of two Operations\n"); } "PRODUKT OF" { printf("Product of two Operations\n"); } "QUOSHUNT OF" { printf("Division of two Operations\n"); } "MOD OF" { printf("Modulo of two Operations\n"); } "BIGGR OF" { printf("Larger of two Operations\n"); } "SMALLR OF" { printf("Smaller of two Operations\n"); } "BOTH SAEM" { printf("Both the operaters are same\n"); } "DIFFRNT" { printf("Both the operaters are not same\n"); } "IM OUTTA YR" { printf("Ending a Loop\n"); } "IM IN YR" { printf("Starting a Loop\n"); } "BOTH OF" { printf("AND operator\n"); } "EITHER OF" { printf("OR operator\n"); } "WON OF" { printf("XOR operator\n"); } "NOT" { printf("NOT operator\n"); } "O RLY?" { printf("Start IF condition\n"); } "YA RLY" { printf("Start IF yes\n"); } "NO WAI" { printf("Start IF not\n"); } "MEBBE" { printf("Start IF maybe\n"); } "WTF?" { printf("Start SWITCH CASE\n"); } "OMG" { printf("CASE inside switch case\n"); } "OMGWTF" { printf("DEFAULT case in switch case\n"); } "GTFO" { printf("BREAK statement\n"); } "OIC" { printf("Condition Ending\n"); } "exit" {return 0;} [a-zA-Z]+ { printf("String Literals %s\n", yytext); } [0-9]+ { printf("Number Literals %s\n", yytext); } %% yywrap() {} int main() { printf("Enter String: \n"); yyin = fopen(argv[1], "r"); yylex(); fclose(yyin); return 0; }