Next: About this document ...
Up: The Assignment
Previous: Test Programs for ALLCOT (7
Enhance your lex (or flex) program such that
it can display all identifiers that are found
after parsing an input ALLCOT program.
In addition, for each of these identifiers, print
- its number of occurrences,
- the number of the line where it appears first.
Subsidiary question. Can you modify your lex (or flex) program
such that it can detect identifiers that are used (or defined) before they are declared?
Next: About this document ...
Up: The Assignment
Previous: Test Programs for ALLCOT (7
Marc Moreno Maza
2004-12-01