1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- #ifndef AFUN_CORE_H
- #define AFUN_CORE_H
- #include "aFuntool.h"
- namespace aFuncore {
- using namespace aFuntool;
- typedef enum CodeType {
- code_start = 0,
- code_element = 1,
- code_block = 2,
- } CodeType;
- typedef enum BlockType {
- block_p = '(',
- block_b = '[',
- block_c = '{',
- } BlockType;
- class AFUN_CORE_EXPORT Code;
- class AFUN_CORE_EXPORT EnvVarSpace;
- class AFUN_CORE_EXPORT Inter;
- enum InterStatus {
- inter_creat = 0,
- inter_init = 1, // 执行初始化程序
- inter_normal = 2, // 正常执行
- inter_stop = 3, // 当前运算退出
- inter_exit = 4, // 解释器退出
- };
- typedef enum InterStatus InterStatus;
- typedef enum ExitFlat {
- ef_activity = 0, // 主动退出
- ef_passive = 1, // 被动退出
- ef_none = 2,
- } ExitFlat;
- typedef enum ExitMode {
- em_activity = ef_activity, // 主动退出
- em_passive = ef_passive, // 被动退出
- } ExitMode;
- static const int PREFIX_COUNT = 2;
- typedef enum Prefix {
- prefix_quote = 0, // 变量引用
- prefix_exec_first = 1,
- } Prefix;
- static const std::string E_PREFIX = "$`'"; /* NOLINT element前缀 */
- static const std::string B_PREFIX = "$`'%^&<?>"; /* NOLINT block前缀 */
- class AFUN_CORE_EXPORT Message;
- class AFUN_CORE_EXPORT NormalMessage;
- class AFUN_CORE_EXPORT ErrorMessage;
- class AFUN_CORE_EXPORT MessageStream;
- class AFUN_CORE_EXPORT UpMessage;
- class AFUN_CORE_EXPORT DownMessage;
- class AFUN_CORE_EXPORT Activation;
- class AFUN_CORE_EXPORT ExeActivation;
- class AFUN_CORE_EXPORT TopActivation;
- class AFUN_CORE_EXPORT FuncActivation;
- typedef enum ActivationStatus {
- as_run = 0,
- as_end = 1,
- as_end_run = 2,
- } ActivationStatus;
- class AFUN_CORE_EXPORT GcList;
- class AFUN_CORE_EXPORT Object;
- class AFUN_CORE_EXPORT Function;
- class AFUN_CORE_EXPORT Literaler;
- class AFUN_CORE_EXPORT CallBackVar;
- class AFUN_CORE_EXPORT Var;
- class AFUN_CORE_EXPORT VarSpace;
- class AFUN_CORE_EXPORT VarList;
- class AFUN_CORE_EXPORT ProtectVarSpace;
- typedef enum VarOperationFlat {
- vof_success = 0, // 成功
- vof_not_var = 1, // 变量不存在
- vof_redefine_var = 2, // 变量重复定义
- vof_fail = 3, // 存在其他错误
- } VarOperationFlat;
- }
- #endif //AFUN_CORE_H
|