#include "define.h"
#include
#include
#include
#include
FILE *fp
/*//////////////////////////////////////////////////////////////////////////////
This is a pretreatment.
/////////////////////////////////////////////////////////////////////////////*/
void readIntoBuffer(char buffer[256])
{
char ch1
char temp
int i
for(i=0 i
一个可以识别C语言中标识符,关健字,运算符和各种数字的词法分析器.用VC6.0编写的. 下面是主要代码- May distinguish in the C language the identifier, Guan Jianzi,
the operator and each kind of digital morphology analyzer Compiles
with VC6.0 Under is the main code..
一个简单的词法分析器,1代表字符,2代表关键字(命令字),4带表算符界符, 注:要把wangs.txt这个文件放在桌面上,然后在这个TXT里写上你要识别的语句。然后保存后关毕,在运行WANG词法分析.EXE进行词法分析。 完成识别后,会在相应的词面前出现以上代号。暂不能对数字进行识别。因为在某种请况下数字也可表是为字符……稍有困难,但完成老师的针对程序段:area=b+c*d。那简直是小菜一碟。-a simple lexical analyzer, a representative character, the two representatives keyword (command word), with four tables operator sector website Note : The wangs.txt the document on the desktop, then the TXT Lane write you to identify words. Then preserved customs Albert, running WANG lexical analysis. EXE for lexical analysis. After completing the identification, in the appropriate words appear in front of the above code. Provisional figures for the right not to identify. Because of the status of requests under certain figures might be for the characters ... the slightest difficulty, but the completion of procedural teachers : area = b, c* d. It is simply to touch.
本程序是用c#写的一个编译器,实现了词法,语法,语义分析和中间代码生成,输出结果功能-This procedure is used c# Write a compiler, the realization of the lexical, syntax, semantic analysis and code generation between, the output function
这是一个利用水平集方法进行分割的方法,是目前使用越来越多的方法,并且有严格的数学依据-This is a level set method using segmentation method is currently used by more and more ways, and has a strict mathematical basis for
shpf 1.9一个并行编译器,自动的将串行fortran程序转换成并行的mpi程序。-shpf 1.91 parallel compilers, are automatic transform the
serial fortran procedure the parallel mpi procedure.