C语言词法分析器状态转换图
2023-10-18 17:47:39 21 举报
编译原理实验,能够辨别的类型如下: 关键字 KEYWORD 标识符 IDENTIFIER 运算符 OPERATOR 分隔符 DELIMITER 字符常量 CHARCON 字符串 STRING 数值常量 NUMBER 词法错误 ERROR
作者其他创作
大纲/内容
21
字母
0
\"
e
|
14
@
OPERATOR %=
OPERATOR -=
2
OPERATOR %
>
OPERATOR !=
NUMBER
*
其他
数字
OPERATOR <=
12
=
-
DELIMITER
OPERATOR ^=
OPERATOR ~
5
\
10
OPERATOR >>=
OPERATOR ^
8
OPERATOR >>
18
3
OPERATOR -=
//
<
1
OPERATOR +=
OPERATOR ==
OPERATOR >
分隔符
!
.
+
16
OPERATOR .
STRING
/
OPERATOR -
OPERATOR |=
OPERATOR --
OPERATOR |
&
19
13
OPERATOR ++
/*
注释2
7
数字,.
OPERATOR ||
OPERATOR <
ERROR
OPERATOR &
OPERATOR &=
4
15
非数字与字母
+,-
CHARCON
OPERATOR =
注释1
非字母与 _
空白,空格,\
IDENTIFIER
17
^
‘
6
~
OPERATOR <<
OPERATOR +
OPERATOR ->
OPERATOR &&
*/
OPERATOR <<=
%
OPERATOR =
20
11
9
OPERATOR >=
收藏
0 条评论
下一页