?? parser.h
字號:
#ifndef PARSER_H
#define PARSER_H
#define PARSER_DEBUG
#include"scanner.h"
typedef double(*FuncPtr)(double);
struct ExprNode //語法樹結點類型
{
enum Token_Type OpCode; //PLUS,MINUS,MUL,DIV,POWER,FUNC,CONST_ID等
union
{
struct{ExprNode *Left,*Right;} CaseOperator;
struct{ExprNode *Child;FuncPtr MathFuncPtr;} CaseFunc;
double CaseConst;
double *CaseParmPtr;
}Content;
};
extern void Parser(char *SrcFilePtr) ;//語法分析器對外的接口
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -