]> git.proxmox.com Git - mirror_edk2.git/blob - EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/sorcerer/h/SCommonAST.h
Add in the 1st version of ECP.
[mirror_edk2.git] / EdkCompatibilityPkg / Other / Maintained / Tools / Pccts / sorcerer / h / SCommonAST.h
1 #ifndef SCommonAST_h
2 #define SCommonAST_h
3
4 #include <stdio.h>
5 #include "PCCTSAST.h"
6 #include "SASTBase.h"
7
8 /* If you use SORCERER alone, you can subclass this to get a nice tree def */
9
10 class SORCommonAST : public SORASTBase {
11 protected:
12 SORCommonAST *_right, *_down;
13 int _type;
14
15 public:
16 SORCommonAST() { _right = _down = NULL; }
17 PCCTS_AST *right() { return _right; } // define the SORCERER interface
18 PCCTS_AST *down() { return _down; }
19 int type() { return _type; }
20 void setRight(PCCTS_AST *t) { _right = (SORCommonAST *)t; }
21 void setDown(PCCTS_AST *t) { _down = (SORCommonAST *)t; }
22 void setType(int t) { _type = t; }
23 virtual PCCTS_AST *shallowCopy() {return NULL;}
24 };
25
26 #endif