~ubuntu-branches/ubuntu/utopic/aspectc++/utopic

« back to all changes in this revision

Viewing changes to Puma/src/parser/cparser/CExprResolveH.ah

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2006-04-07 11:56:35 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20060407115635-e8wfgmetasrf2p27
Tags: 0.99+1.0pre3-1
* new upstream release
* Apply patch from Martin Michlmayr for g++-4.1 (Closes: #357901)
* further (simple) patches in Puma/ and AspectC++ for g++-4.1
* note that Puma needs to be rewoven so that it can be compiled
  with g++-4.1. This will be done we switch the default compiler
  version.
* Patch JoinPointRepo.cc so that it doesn't loop endlessly anymore.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// This file is part of PUMA.
 
2
// Copyright (C) 1999-2003  The PUMA developer team.
 
3
//                                                                
 
4
// This program is free software;  you can redistribute it and/or 
 
5
// modify it under the terms of the GNU General Public License as 
 
6
// published by the Free Software Foundation; either version 2 of 
 
7
// the License, or (at your option) any later version.            
 
8
//                                                                
 
9
// This program is distributed in the hope that it will be useful,
 
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of 
 
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the  
 
12
// GNU General Public License for more details.                   
 
13
//                                                                
 
14
// You should have received a copy of the GNU General Public      
 
15
// License along with this program; if not, write to the Free     
 
16
// Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, 
 
17
// MA  02111-1307  USA                                            
 
18
 
 
19
#ifndef __CExprResolveH_ah__
 
20
#define __CExprResolveH_ah__
 
21
 
 
22
// This aspect inserts resolve member functions into all syntax tree classes
 
23
// that represent expressions. As the function is virtual, an efficient
 
24
// run-time switch over the node type is implemented.
 
25
 
 
26
namespace Puma {
 
27
  class CSemExpr;
 
28
}
 
29
 
 
30
using namespace Puma;
 
31
 
 
32
namespace Puma {
 
33
  slice class CExprResolveCTree {
 
34
  public:
 
35
    virtual CTypeInfo *resolve(CSemExpr &sem_expr, CTree *base);
 
36
  };
 
37
  slice class CExprResolveExpr {    
 
38
  public:
 
39
    virtual CTypeInfo *resolve (CSemExpr &sem_expr, CTree *base);
 
40
  };
 
41
}
 
42
 
 
43
aspect CExprResolve {
 
44
  advice "Puma::CTree" : slice Puma::CExprResolveCTree;
 
45
  advice
 
46
     derived ("Puma::CT_Expression"||"Puma::CT_SimpleName"||"Puma::CT_String") :
 
47
     slice Puma::CExprResolveExpr;
 
48
};
 
49
 
 
50
#endif /* __CExprResolveH_ah__ */