This document outlines 5 problems: 1) check if input contains a verb, 2) print types of numbers like decimal and whole, 3) count and print characters other than letters, 4) count and print whitespace, 5) count words, lines, and characters in a file. The code opens a file for reading and calls yylex() to parse it.
This document outlines 5 problems: 1) check if input contains a verb, 2) print types of numbers like decimal and whole, 3) count and print characters other than letters, 4) count and print whitespace, 5) count words, lines, and characters in a file. The code opens a file for reading and calls yylex() to parse it.
This document outlines 5 problems: 1) check if input contains a verb, 2) print types of numbers like decimal and whole, 3) count and print characters other than letters, 4) count and print whitespace, 5) count words, lines, and characters in a file. The code opens a file for reading and calls yylex() to parse it.
Problem 2 To print the types of numbers such as decimal number, whole number Problem 3 To count and print all characters other than letters Problem 4 To count and print the number of whitespaces Problem 5 To count the number of words, lines and characters in the input file. int main(void) { yyin= fopen("myfile.txt","r"); yylex(); }