parser.h
来自「用VC++实现了一个编译器的功能」· C头文件 代码 · 共 23 行
H
23 行
#ifndef PARSER_H
#define PARSER_H
#include "scanner.h"
typedef double(* FuncPtr)(double);
struct ExprNode
{ enum Token_Type OpCode;
union
{ struct { ExprNode *Left,*Right; }CaseOperator;
struct { ExprNode *Child; FuncPtr MathFuncPtr; }CaseFunc;
double CaseConst;
double *CaseParmPtr;
}Content;
};
extern void Parser(char *SrcFilePtr);
//extern double GetExprValue(struct ExprNode *root);
//extern void DelExprTree(struct ExprNode *root);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?