Due : March 22.
1. Compile and exercise the tree-walker routine on various small programs.
2. Modify the tree-walker routine to list the constants and variables declared
in a program. This requires that you traverse the tree and find the declarationsof the right kind in each program unit (package, function. procedure) and list
their defining identifiers. Test your work on programs with nested
functions. You can use any of the gnat sources as test materials.
Submit your modified tree-walking routine, the input program, and the
output produced by the modified tree-walker.