文件名称:1
介绍说明--下载内容均来自于网络,请自行研究使用
编译原理 词法分析
[实验项目] 完成以下正则文法所描述的C和Pascal语言子集单词符号的词法分析程序。
<标识符>→字母︱ <标识符>字母︱ <标识符>数字
<无符号整数>→数字︱ <无符号整数>数字
<单字符分界符> →+ ︱- ︱* ︱; ︱(︱)
<双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>* <小于>→< <等于>→= <大于>→> <冒号> →: <斜竖> →/
该语言的保留字 :begin end if then else for do while and o r not
-Compiler theory lexical analysis [pilot project following the completion of regular grammars as described in C and Pascal language subset word symbols of lexical analysis procedures. < Identifier> → letters ︱ < identifier> letter ︱ < identifier> Digital < unsigned integer> → digital ︱ < unsigned integer> Digital < single character boundaries operator> → the PPLS ︱- |* | | (|) < two-character delimiter> → < greater than> = ︱ < less than> = ︱ < less than> ︱ < colon> = ︱ < oblique vertical> * < less than> → < < equal to> -> = < greater than> →> < colon> →: → < inclined Vertical> /language reserved words: begin end if then else for do while and or not
[实验项目] 完成以下正则文法所描述的C和Pascal语言子集单词符号的词法分析程序。
<标识符>→字母︱ <标识符>字母︱ <标识符>数字
<无符号整数>→数字︱ <无符号整数>数字
<单字符分界符> →+ ︱- ︱* ︱; ︱(︱)
<双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>* <小于>→< <等于>→= <大于>→> <冒号> →: <斜竖> →/
该语言的保留字 :begin end if then else for do while and o r not
-Compiler theory lexical analysis [pilot project following the completion of regular grammars as described in C and Pascal language subset word symbols of lexical analysis procedures. < Identifier> → letters ︱ < identifier> letter ︱ < identifier> Digital < unsigned integer> → digital ︱ < unsigned integer> Digital < single character boundaries operator> → the PPLS ︱- |* | | (|) < two-character delimiter> → < greater than> = ︱ < less than> = ︱ < less than> ︱ < colon> = ︱ < oblique vertical> * < less than> → < < equal to> -> = < greater than> →> < colon> →: → < inclined Vertical> /language reserved words: begin end if then else for do while and or not
(系统自动生成,下载前可以参看下载内容)
下载文件列表
源程序\in.o
......\新建文本文档.txt
......\源程序.cpp
......\源程序.exe
源程序