文件名称:scan
介绍说明--下载内容均来自于网络,请自行研究使用
//程序实现C语言词法分析器的设计
//用到的变量
// cch 放当前字符
// q 标志保留字(1:是 0:否)
//StrToken 保留字列表
/*C语言中的保留字(32个)
auto break case char const
continue default do double else
enum extern float for goto
if int long register return
short signed sizeof static struct
switch typedef union unsigned void
volatile while
运算符
( ) [ ] { } . ! + - * /
< <= > >= == ! = += -= *= , */
/*a = @ b = # 错误字符行,其中@,#两个符号为错误字符*/-//Program C language lexical analyzer design
//Variables used in the
//CCH discharge the current character
//Q flag reserved word (1: 0: no)
,// StrToken reserved word list
/* C language reserved words (32)
auto break case char const
continue default do double else
enum extern float for goto
if int long register return
short signed sizeof static struct
switch typedef union unsigned void
volatile while
Operator
() [] {}+-* /
<< = >> ===! =+ =- =* =* /
/* a = @ b =# incorrect character line, @,#, the two symbols of the incorrect character* /
(系统自动生成,下载前可以参看下载内容)
下载文件列表
scan.cpp