⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 parser.h

📁 用VC++实现了一个编译器的功能
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -