?? global.h
字號:
/***********************************************************************
一些變量和數(shù)據(jù)結構的定義
本程序完全用標準的c寫成,除了用到了c++中string 類,其他都沒有用
所以我想這個程序是可以在不同平臺上運行的
***********************************************************************/
#ifndef _GLOBAL_H
#define _GLOBAL_H
#include <stdio.h>
#include <ctype.h>
#include <string>
using namespace std;
# define MAX 6 //分析表的最大容量
#define MAXBUF 255
char ch =' ';// 存放讀入當前的輸入字符
int lineno;//程序行數(shù)
struct entry{
const char *lexptr;
int token;
};//關鍵字表中的結構
struct entry symtable[MAX];//分析表
static string str[] = { "if","then","else","program","begin","end"};//關鍵字
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -