scanning keywords, identifiers through a file
Posted on 2003-03-09
i am workin on making a scanner , and wanted to know how to scan identifiers , keywords etc from a file (that is opened for reading)...sum1 told me that i have 2 generate tokens and then match those tokens with the keywords , identifiers etc ( already mentioned in the program).. but i dunno how to generate tokens and match them. well i am in need of a huge help here...if any1 of u can come up with a program / sample code or even answer my question ..i will be grateful......i hope u all understand me here !!!