Welcome to the new platform of Programmers Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use it's exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
my prof wants us to write a lexical analyzer for C programming language. and design a lexical analyzer which can be called by a parser and return a quadraple (tokentype, attributevalue, line number, line position). should not return a quadraple for a comment, it should return the next token after skipping the comments.how to design a driver program which reads the name of a file which holds a sample program in this prog lang, and prints this token of this sample program into another file.