ROSE 0.11.145.192
grammarBaseClass.h
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 );
21 ROSE_BaseGrammar* getParentGrammar () const;
22
23 // Only one grammar is the root of all others
24 bool isRootGrammar() const;
25
26 private:
27 ROSE_BaseGrammar* parentGrammar;
28
29 // ROSE_BaseGrammar ();
31 ROSE_BaseGrammar & operator= ( const ROSE_BaseGrammar & X );
32 };
33
34#endif // ifndef BASE_GRAMMAR_H
35