?? word_analysis.h
字號:
/*++
module name: word_analysis.h
vars and functions for word analysis
--*/
#ifndef _WORD_ANALYSIS
#define _WORD_ANALYSIS
#include "global_def.h"
#include "error_.h"
/*****************************************************/
/* we don't have to expose these vars to user */
/*
// alloc space for file buffer
extern char file_buffer[MAX_FILE_SIZE];
extern int pre_type;
extern char str_tem[MAX_LENGTH];
*/
extern char *p_char;
/***************************************************/
/* copy certain file to buffer */
int file_to_buffer(char *filename);
/* */
int is_end (void);
/* 當(dāng)前字符指針p_char自加 如果當(dāng)前字符為文件結(jié)尾 返回錯誤 */
int pop_char (void);
/* 如果當(dāng)前字符指針指向一個非Token的字符,將當(dāng)前字符指針指向下一個Token */
int goto_token(void);
/* some functions for certain char *p_char judging */
int is_blank (void); /* is *p_char a blank */
int is_tab (void);
int is_digit (void);
int is_letter (void);
int is_specifier(void); /* 界符 */
int is_reserve (char *str); /* 保留字 */
int is_tranmean(char *p_c); /* 轉(zhuǎn)義字符 */
/* some functions deal with certain type */
ENTRY deal_specifier (void); /* 處理界符 */
ENTRY deal_double_ (void); /* " */
ENTRY deal_single_ (void); /* ' */
ENTRY deal_num (void);
ENTRY deal_other (void); /* reservers and identifiers */
/* if cannot tell which type the token is, the retern
entry's type is TYPE_UNDEF and the pointer is NULL */
ENTRY get_token(void );
#endif /* _WORD_ANALYSIS */
/*************************end of file********************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -