文件名称:wcp
介绍说明--下载内容均来自于网络,请自行研究使用
文件中:wcp.exe是我们针对编译实验的文法的一个编译器(不含源码);pi.txt和prime_number.txt是按照实验文法写的测试程序(前者是求pi值,后者是求质数)
注:wcp将编译和执行放在了一起,而且对原实验文法做了以下扩展
1.标识符采用c语言标准的标识符
2.增加了print语句来打印结果(statement:print VarList )
执行方法:在cmd下进入wcp所在目录,如
E:\My Learns\编译原理
然后执行如下
E:\My Learns\编译原理\wcp pi.txt
目的:找bug,good bug finder 可得源码-File: wcp.exe experiment we compile the grammar for a compiler (without source) pi.txt and prime_number.txt experimental grammar written in accordance with test procedures (the former is seeking the value of pi, which is seeking a prime number ) Note: wcp will put together compilation and execution, and the grammar of the original experiments done the following extensions 1. identifiers using c language identifier 2 standard. added print statements to print the results (statement: print VarList) methods of implementation : wcp in cmd into the directory, such as E: \ My Learns \ compiler theory and then do the following E: \ My Learns \ compiler theory \ wcp pi.txt purpose: to find bug, good bug finder available source
注:wcp将编译和执行放在了一起,而且对原实验文法做了以下扩展
1.标识符采用c语言标准的标识符
2.增加了print语句来打印结果(statement:print VarList )
执行方法:在cmd下进入wcp所在目录,如
E:\My Learns\编译原理
然后执行如下
E:\My Learns\编译原理\wcp pi.txt
目的:找bug,good bug finder 可得源码-File: wcp.exe experiment we compile the grammar for a compiler (without source) pi.txt and prime_number.txt experimental grammar written in accordance with test procedures (the former is seeking the value of pi, which is seeking a prime number ) Note: wcp will put together compilation and execution, and the grammar of the original experiments done the following extensions 1. identifiers using c language identifier 2 standard. added print statements to print the results (statement: print VarList) methods of implementation : wcp in cmd into the directory, such as E: \ My Learns \ compiler theory and then do the following E: \ My Learns \ compiler theory \ wcp pi.txt purpose: to find bug, good bug finder available source
(系统自动生成,下载前可以参看下载内容)
下载文件列表
wcp.exe
pi.txt
prime_number.txt
pi.txt
prime_number.txt