I need a program that opens a sample program and counts the number of reserved words, operands and operators. Operands and operators are easy to distinguish. My problem is how do I determine the reserved words there?
One solution I thought of is to create a separate text file that has all the reserved words in them to be used as a cross reference. Do you think this will work and if you have a better idea, I'd be glad to listen. Thanks.
P.S. I also would like to know what it means when you add the word unique as I'm tasked to find reserved words along with unique reserved words, operators along with unique operators and operands along with unique operands. Thanks again.