~ubuntu-branches/ubuntu/quantal/aspectc++/quantal

« back to all changes in this revision

Viewing changes to Puma/src/aspects/TraceSyntax.ah

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-04-10 17:40:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20080410174052-xdnsm7oi8hauyyf1
Tags: 1.0pre4~svn.20080409+dfsg-3
Fix another missing include, this time in Ag++/StdSystem.cc

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#ifndef NDEBUG
23
23
 
24
24
#include "Puma/Tracing.h"
25
 
//#include "Puma/TokenProvider.h"
26
25
 
27
26
 
28
27
namespace Puma {
29
28
  class CTree;
30
 
} // namespace Puma
31
 
 
32
 
 
33
 
using namespace Puma;
34
 
 
35
 
 
36
 
aspect TraceSyntax : public Tracing {
 
29
}
 
30
 
 
31
 
 
32
aspect TraceSyntax : public Puma::Tracing {
37
33
  int skipping;
38
34
  
39
35
  void trace_rule (const char *sig) {
66
62
    TraceSyntax __trace;
67
63
  public:
68
64
    TraceSyntax *trace_aspect () { return &__trace; }
69
 
    TokenProvider *__tp () { return token_provider; }
 
65
    Puma::TokenProvider *__tp () { return token_provider; }
70
66
  };
71
67
  
72
68
  // add initialization function to Parser
83
79
   { trace_rule (JoinPoint::signature ()); }
84
80
 
85
81
  advice within (syntax ()) && args (result, "%::Syntax::State") &&
86
 
  execution ("bool Puma::%::accept(...)") : before (CTree *result) {
 
82
  execution ("bool Puma::%::accept(...)") : before (Puma::CTree *result) {
87
83
    trace (result ? "ACCEPT" : "FAILED", -1);
88
84
  }
89
85