Please modify the first Flex example file from the notes flex-example-1.l so that its output is the same set of triples that the standard program wc creates.
Here are three testfiles you can use:
Your output should look like:
$ ./assignment-solution < test-file1 0 5 17 $ wc < test-file1 0 5 17 $ ./assignment-solution < test-file2 0 1 7 $ wc < test-file2 0 1 7 $ ./assignment-solution < test-file3 10 31 332 $ wc < test-file3 10 31 332 $
Your output doesn't have to match the exact spacing of wc, but obviously the number of lines, words, and characters must be the same.
Please create a Makefile that, like the example we did on Tuesday in class, first runs flex over your source, and then runs clang to create a binary called "assignment-solution".
To submit, make a tar file with your source code and your Makefile and submit the tarfile on Blackboard by Wednesday, November 2.