List<Declaration> declarations(){
  return Collections.unmodifiableList(stackMap);
}

List < Declaration > declarations ( ) { return Collections . unmodifiableList ( stackMap ) ; }
return the symbol table as a list of declarations
