ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
grammarBaseClass.h
Go to the documentation of this file.
1 // grammarBaseClass.h -- header file for the base class of all grammars
2 
3 #ifndef BASE_GRAMMAR_H
4 #define BASE_GRAMMAR_H
5 
6 // class SgFile;
7 
9  {
10  // This class for a base class for all grammars
11 
12  public:
13 
15 
16  // Experimental interface
17  // ROSE_BaseGrammar ( SgFile *file );
18  // SgFile* getProgramFile();
19 
20  void setParentGrammar ( ROSE_BaseGrammar* Xptr );
22 
23  // Only one grammar is the root of all others
24  bool isRootGrammar() const;
25 
26  private:
28 
29  // ROSE_BaseGrammar ();
30  ROSE_BaseGrammar ( const ROSE_BaseGrammar & X );
32  };
33 
34 #endif // ifndef BASE_GRAMMAR_H
35