global.h

来自「一个简单的C语言子集的编译器,一个简单的C语言子集的编译器」· C头文件 代码 · 共 26 行

H
26
字号

#ifndef GLOBAL_H_
#define GLOBAL_H_

#include <fstream>
#include <string>
#include "symtable.h"
#include "typedef.h"

using namespace std;

ifstream fsource;
ofstream ftoken;
ofstream fsyntax;
ofstream fsymbol;
ofstream fcode;
string TokenString;
string FuncName;
TokenType token;
TreeNode VirtualNode;
int peeking=0;
int lineno=1;
int location=0;
int Error=0;
int globalAlloc=0;
#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?