搜索资源列表
cifafenxi
- 设计、编制并调式一个词法分析程序,加深对词法分析原理的理解,对字符串型单词符号(if,then,while,do----)等等用函数int reserve(char* p)来处理,对单词符号(+,-,*,/,=-----)等等用switch()来处理。-cifafenxi
C0Compiler
- 能生成四元式和16位汇编语言的编译器,if-else,while,for,switch语句均能编译成功。代码并不完美,仅供参考-Can generate quaternary assembly language-and 16-bit compiler, if-else, while, for, switch statements can compile successfully. Code is not perfect, are for reference only
WHILE
- WHILE循环语句的翻译程序设计(LL(1)法、输出四元式)1 系统描述(问题域描述); 2 文法及属性文法的描述; -WHILE loop translation of program design (LL (1) method, the output quaternion type) a system descr iption (problem domain descr iption) two grammar and attribute grammar descr iption
d1321r3-ATA-ATAPI-5
- ATA/ATAPI-5规范 ATA接口相关开发的标准-This standard specifies the AT Attachment Interface between host systems and storage devices. It provides a common attachment interface for systems manufacturers, system integrators, software suppliers, and suppliers
lab2
- 编译原理实验二:TINY扩充语言的语法分析 扩充的语法规则有:实现 while、do while、for语句和求余计算式子,具体文法规则自行构造。-Compiler Principle Experiment II: TINY extension language parsing expansion syntax rules: to achieve the while, do while, for statement and the remainder calculation formulas
ll1
- WHILE循环语句的翻译程序设计(LL(1)法、输出三地址表示)-The translation program design of the WHILE loop (LL (1) method, output three address said)
WHILE-loop-simple-priority
- WHILE循环语句的翻译程序设计(简单优先法、输出四元式)-The WHILE loop translation program design (simple priority output four yuan)
lab2
- 实验二:TINY扩充语言的语法分析 扩充的语法规则有:实现 while、do while、for语句和求余计算式子,具体文法规则自行构造。 可参考:P97及P136的文法规则。 (1) While-stmt --> while exp do stmt-sequence endwhile (2) Dowhile-stmt-->do stmt-sequence while exp (3) for-stmt-->for identifier:=
11Vol33No2
- Segmentation of structure in medical images is an important research topic. It has applications in patient diagnoses, image-guided surgery, and medical data visualization. One approach to solving this problem is the use of active contours or \s
IHMSC_2011
- Image-guided surgery is one other important application of segmentation. Recent advances in technology have made it possible to acquire images of the patient while the surgery is taking place. The goal is then to segment relevant regions of int
scan
- //程序实现C语言词法分析器的设计 //用到的变量 // cch 放当前字符 // q 标志保留字(1:是 0:否) //StrToken 保留字列表 /*C语言中的保留字(32个) auto break case char const continue default do double else enum extern float for goto if int long register retu
minic_interpreter
- 一款比较完善的强大的C语言解释器,附带源码,可以嵌入到用户应用程序中。支持对比较复杂的C代码的解释执行。完美支持各种标准C语言语法,如if-else结构语句, ?:结构求值语句,for循环,while循环,do...while循环等 支持各种数据类型包括: char,short,int,string,float 支持多维数组及指针 支持自定义函数以及系统函数 支持局部变量以及全局变量,允许在变量定义时直接初始化 支持局部变量层次化作用域;允许定义系统常量;支持系统内部定义数据类型,但不支持用户在
project
- 词法分析器,接收源程序,得到该程序的token串-Simple design of a simple language compiler, we realize that the symbol table design, the design of lexical analysis, syntax analysis and semantic analysis of the design, and ultimately produce quaternion type. Lexical analys
HuffmanTree
- 该系统应具有以下功能: (1) I:初始化(Initialization)。从终端读入字符集大小n,以及n个字符和n个权值,建立哈夫曼树,并将它存于文件hfmTree中。 (2) E:编码(Encoding)。利用已建好的哈夫曼树(如不在内存,则从文件hfmTree中读入),对文件ToBeTran中的正文进行编码,然后将结果存入文件CodeFile中。 (3) D:译码(Decoding)。利用已建好的哈夫曼树将文件CodeFile中的代码进行译码,结果存入文件TextFile中。
programa1
- program to calculate the speed of the participants, in miles per hour. The data that must apply for the program from the keyboard for each participant are: name of the athlete, performed
CPP
- n this section, you will interface with the operating system using DOS commands. For each of the following tasks, list the correct DOS command. Note: While it is not necessary to perform these tasks on a computer, the assignment is structured fo
simplePython
- 简单版python解释器,仅支持for,if,while等简单语句-Simple version of the python interpreter, supports only for, if, while other simple statement
CP_test_1
- 编译原理实验 词法分析 一、实验目的: 通过设计编制调试一个具体的词法分析程序,加深对词法分析原理的理解。并掌握在对程序设计语言源程序进行扫描过程中将其分解为各类单词的词法分析方法。 二、实验内容 编制一个能够分析整数、小数、字符串、标识符、分隔符、运算符和关键字的词法分析程序。同时要能过滤行注释和块注释。 三、实验要求 1、词法规则 关键字: if、then、else、while、do、int、float、string、begin、en
test1
- 1.1输入输出 程序输入为含有Pascal语言字符串的文件Test.cpp程序在控制台输出为含有二元组<code,String>和错误信息。其中code为单词符号类别标示,String为识别的单词。 1.2大小写不敏感: 程序对大小写不敏感,输出均为小写字符。 1.3注释识别功能: 当程序中出现“/*”时就会放弃对之后字符的识别,直至遇到“*/”,并将/*…*/部分识别为注释输出。 当输入中只有“/*”而没有与之对应的“*/”时输出“E
while-loop
- using (while loop) working but Increment Operator (use different pattern )