scommonast.h
来自「SRI international 发布的OAA框架软件」· C头文件 代码 · 共 27 行
H
27 行
#ifndef SCommonAST_h
#define SCommonAST_h
#include <stdio.h>
#include "PCCTSAST.h"
#include "SASTBase.h"
/* If you use SORCERER alone, you can subclass this to get a nice tree def */
class SORCommonAST : public SORASTBase {
protected:
SORCommonAST *_right, *_down;
int _type;
public:
SORCommonAST() { _right = _down = NULL; }
PCCTS_AST *right() { return _right; } // define the SORCERER interface
PCCTS_AST *down() { return _down; }
int type() { return _type; }
void setRight(PCCTS_AST *t) { _right = (SORCommonAST *)t; }
void setDown(PCCTS_AST *t) { _down = (SORCommonAST *)t; }
void setType(int t) { _type = t; }
virtual PCCTS_AST *shallowCopy() {return NULL;}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?