文件名称:dancicifafenxi
介绍说明--下载内容均来自于网络,请自行研究使用
完成以下正则文法所描述的Pascal语言子集单词符号的词法分析程序。
<标识符>→字母︱ <标识符>字母︱ <标识符>数字
<无符号整数>→数字︱ <无符号整数>数字
<单字符分界符> →+ ︱- ︱* ︱ ︱(︱)
<双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>*
<小于>→<
<等于>→=
<大于>→>
<冒号> →:
<斜竖> →/
该语言的保留字 :begin end if then else for do while and or not 说明: 1 该语言大小写不敏感。
2 字母为a-z A-Z,数字为0-9-Complete the following regular grammar describes a subset of Pascal language word symbols of the lexical analysis process. < Identifier> → letters ︱ < identifier> Alphabet ︱ < identifier> number < unsigned integer> → Digital ︱ < unsigned integer> number < single-character delimiter> →+ ︱- ︱ ︱* ︱ (︱) < two-character delimiter> → < greater than> = ︱ < less than> = ︱ < less than> > ︱ < colon> = ︱ < oblique shaft> * < less than> → < < mean> → = < greater than> →> < colon> →: < oblique vertical> →/reserved words of the language: begin end if then else for do while and or not: 1 The language is not case sensitive. 2 letters az AZ, numbers 0-9
<标识符>→字母︱ <标识符>字母︱ <标识符>数字
<无符号整数>→数字︱ <无符号整数>数字
<单字符分界符> →+ ︱- ︱* ︱ ︱(︱)
<双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>*
<小于>→<
<等于>→=
<大于>→>
<冒号> →:
<斜竖> →/
该语言的保留字 :begin end if then else for do while and or not 说明: 1 该语言大小写不敏感。
2 字母为a-z A-Z,数字为0-9-Complete the following regular grammar describes a subset of Pascal language word symbols of the lexical analysis process. < Identifier> → letters ︱ < identifier> Alphabet ︱ < identifier> number < unsigned integer> → Digital ︱ < unsigned integer> number < single-character delimiter> →+ ︱- ︱ ︱* ︱ (︱) < two-character delimiter> → < greater than> = ︱ < less than> = ︱ < less than> > ︱ < colon> = ︱ < oblique shaft> * < less than> → < < mean> → = < greater than> →> < colon> →: < oblique vertical> →/reserved words of the language: begin end if then else for do while and or not: 1 The language is not case sensitive. 2 letters az AZ, numbers 0-9
(系统自动生成,下载前可以参看下载内容)
下载文件列表
新建 文本文档.cpp