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

« back to all changes in this revision

Viewing changes to Puma/examples/sync/SyncSyntax.cc

  • 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
#include "SyncTokens.h"
23
23
#include "SyncTree.h"
24
24
 
25
 
 
26
25
SyncSyntax::SyncSyntax(SyncBuilder &b, SyncSemantic &s) : 
27
26
  CCSyntax(b, s) {
28
27
}
76
75
  
77
76
  // Try to parse the "synchronized" keyword followed 
78
77
  // by the opening curly bracket.
79
 
  if (parse(TOK_SYNC) && parse(TOK_OPEN_CURLY)) {
 
78
  if (parse(TOK_SYNC) && parse(Puma::TOK_OPEN_CURLY)) {
80
79
    // If the names declared in a "synchronized" block shall
81
80
    // be local to that block, a local scope has to be entered
82
81
    // by calling the semantic object method enter_local_scope(). 
91
90
    
92
91
    // Try to parse every statement (if any) up to the next 
93
92
    // closing curly bracket on the same nesting level.
94
 
    if (parse(&SyncSyntax::stmt_seq), parse(TOK_CLOSE_CURLY)) {
 
93
    if (parse(&SyncSyntax::stmt_seq), parse(Puma::TOK_CLOSE_CURLY)) {
95
94
      // Check if the "synchronized" statement is nested.
96
95
      // Build the corresponding syntax tree if it is not 
97
96
      // nested, otherwise generate an error message and