?? scanner.h
字號:
#ifndef SCANNER_H
#define SCANNER_H
#include<stdio.h>
#include<string.h>
#include<stdlib.h>
//modify by webboyvc
#define LENGTH 61
#define N 100
/********************/
typedef struct token
{
int label;
char name[30];
int code;
int addr;
}token;
typedef struct KeyWord
{
char name[30];
int code;
}KeyWord;
typedef struct symble
{
int number;
int type;
char name[30];
}symble;
/*******************************************/
char ch;
int var_count;
int error_count;
int label_count;
int code_count;
int addr_count;
int LineOfPro;
char filename[30];
FILE *KeyFin;
FILE *SourceFin;
FILE *SourceFout;
FILE *TokenFout;
FILE *SymbleFout;
KeyWord key[LENGTH];
token CurrentToken;
symble CurrentSimble;
symble SymbleList[N];
/***************************************************/
void Scanner();
void ScannerInit();
void IsAlpha();
void IsNumber();
void IsAnotation();
void IsChar();
void IsOther();
void OutPut();
void Error(int a);
int WordHave();
int strcmp(char*s,char*t)
{
for(;*s==*t;s++,t++)
if(*s==0)
return 0;
return 1;
}
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -