Changeset 185

Show
Ignore:
Timestamp:
10/08/09 14:40:14 (7 weeks ago)
Author:
lb
Message:

ParseTreePrinter?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/cpp_analysis/src/xtc/lang/c4/C4ParseTreePrinter.java

    r127 r185  
    55import xtc.tree.Printer; 
    66import xtc.tree.GNode; 
     7import xtc.tree.Token; 
    78 
    89public class C4ParseTreePrinter extends ParseTreePrinter { 
     
    3435  } 
    3536   
     37  public void visitUserHeader(GNode n) { 
     38           
     39           for (Object o : n) { 
     40                     if (o instanceof Node) { 
     41                         if(((Node)o).getName() == "Include") 
     42                         dispatch((Node)o); 
     43                     } 
     44           } 
     45  } 
     46   
     47  public void visitSystemHeader(GNode n) { 
     48           
     49           for (Object o : n) { 
     50                     if (o instanceof Node) { 
     51                         if(((Node)o).getName() == "Include") 
     52                         dispatch((Node)o); 
     53                     } 
     54           } 
     55 } 
     56   
    3657}