my prof. wants us to write a lexical analyzer. the design of the lexical analyzer as a function which can return a quadraple (tokentype, attributevalue, linenumber and line position)..how to design a driver program in which reads the name of the file which holds a sample program of c prog lang, and prints te tokens of this sample program into another file.