Location:
Search - pascal lex
Search list
Description: 此源码是简单Pascal编译器实现代码,采用工具LEX和YACC实现-this source is simple Pascal compiler for code using tools LEX and YACC
Platform: |
Size: 4252 |
Author: 汪永威 |
Hits:
Description: (1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录;
(4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。
注意事项:
(1) 两人一组
(2) 可以使用词法、语法自动生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等
(3) 不用考虑Pascal和C的关键词不同问题,即Pascal子集语言中假设不出现int,for等作为变量标志符
(4) read()和write()可用由scanf(),printf()等组成的语句转换。
(5) 如果有疑问可以发信给我 xpqiu@fudan.edu.cn.
Platform: |
Size: 48656 |
Author: cy |
Hits:
Description: 1.通过实验进一步理解和掌握词法分析器的工作原理
2.熟悉C语言环境编程
3.熟悉LEX软件的使用
Platform: |
Size: 1752 |
Author: youyang |
Hits:
Description: 现将本人搜集常用的程序设计语言的词法和形式文法提供给大家。其中,词法是按LEX格式编辑,形式文法是按YACC格式书写,大家可直接用LEX和YACC工具编译生成各类程序设计语言的分析器。-commonly used programming language syntax and grammar forms to the public. Among them, morphology is based on LEX format editing, grammar form is written by YACC format, we can use the LEX and YACC tools various compiler generation programming language analyzer.
Platform: |
Size: 29996 |
Author: 翟青 |
Hits:
Description: Pascal语言的词法分析器源程序和开发文档,用LEX编写,可作为编译原理课程的学习参考,源文件已编译通过-Pascal language lexical analyzer and source documentation, prepared with LEX, as compiler theory courses of study reference source documents compiled by
Platform: |
Size: 12359 |
Author: Amethyst |
Hits:
Description: 利用LEX生成工具构造PASCAL词法分析器。输入一个字符串或是数,分析器将判别是否为PASCAL标准标识符、保留字、整数或实数,并同时把当前的输入再次打印出来。-use LEX generation tool is PASCAL lexical analyzer. The importation of a string or number analyzer to determine whether it will PASCAL standard identifier and reserved word, integer or real, and while the current importation of printed again.
Platform: |
Size: 977 |
Author: 刘斌 |
Hits:
Description: 又一个Pascal 到C的转换器 -Another Converter from Pascal to C
Platform: |
Size: 15360 |
Author: 站长 |
Hits:
Description: 现将本人搜集常用的程序设计语言的词法和形式文法提供给大家。其中,词法是按LEX格式编辑,形式文法是按YACC格式书写,大家可直接用LEX和YACC工具编译生成各类程序设计语言的分析器。-commonly used programming language syntax and grammar forms to the public. Among them, morphology is based on LEX format editing, grammar form is written by YACC format, we can use the LEX and YACC tools various compiler generation programming language analyzer.
Platform: |
Size: 29696 |
Author: 翟青 |
Hits:
Description: Pascal语言的词法分析器源程序和开发文档,用LEX编写,可作为编译原理课程的学习参考,源文件已编译通过-Pascal language lexical analyzer and source documentation, prepared with LEX, as compiler theory courses of study reference source documents compiled by
Platform: |
Size: 12288 |
Author: Amethyst |
Hits:
Description: 目的:通过编写简单的YACC程序熟悉YACC词法分析工具的基本用法,及词法分析器的设计思路。编写包括赋值语句、if语句以及含有加合乘运算的表达式等语法结构的pascal子集语言的语法分析器。 功能:程序由两个模块LEX和YACC构成,YACC使用LEX分析后的正规单词输出流-Objective : to prepare a simple procedure with YACC YACC lexical analysis of the basic tools to use, and the lexical analyzer designs. Preparation including assignment if statements containing Addition and multiplication of expressions such as grammatical structure of the pascal subset of the language syntax analyzer. Function : procedures by the two modules constitute LEX and YACC, YACC LEX analysis using the formal word output streams
Platform: |
Size: 2048 |
Author: 刘斌 |
Hits:
Description: 此源码是简单Pascal编译器实现代码,采用工具LEX和YACC实现-this source is simple Pascal compiler for code using tools LEX and YACC
Platform: |
Size: 4096 |
Author: 汪永威 |
Hits:
Description: (1) 给定一段符合Pascal子集语法的语言,能成功转换成C语言;
(2) 一个简单的说明文档;
(3) 2007.7.14之前上传到ftp:// C07:C07@10.11.3.71/upload,用学号建立自己的目录;
(4) (可额外加分5分)若有出错处理功能,请在说明文档中写明可以处理哪几项错误。
注意事项:
(1) 两人一组
(2) 可以使用词法、语法自动生成工具,windows下有Flex,Bison,Linux下有Lex,Yacc,Java的有Jlex,JavaCC,ANTLR等
(3) 不用考虑Pascal和C的关键词不同问题,即Pascal子集语言中假设不出现int,for等作为变量标志符
(4) read()和write()可用由scanf(),printf()等组成的语句转换。
(5) 如果有疑问可以发信给我 xpqiu@fudan.edu.cn.
Platform: |
Size: 48128 |
Author: cy |
Hits:
Description: 1.通过实验进一步理解和掌握词法分析器的工作原理
2.熟悉C语言环境编程
3.熟悉LEX软件的使用
-1. Through experiments to further understand and grasp the working principle of lexical analyzer 2. Familiar with the C programming language environment 3. LEX familiar with the use of software
Platform: |
Size: 1024 |
Author: |
Hits:
Description: SimPas词法分析器。用flex编译生成yy.lex.c,然后用vc编译生成.exe文件,附有pascal程序代码正确的和错误的各一段,以及说明。-SimPas lexical analyzer. Flex compiler used to generate yy.lex.c, and then use the vc compiler generated. Exe files with pascal program code and correct the wrong the paragraph, as well as the description.
Platform: |
Size: 37888 |
Author: 飞鱼 |
Hits:
Description: A simulated lexical analyser for HLL like C,PASCAL etc. I have given a sample text file from which the source code reads the dummy
program n analyses it. The program can be extended by adding more.
Platform: |
Size: 1024 |
Author: kammy |
Hits:
Description: 将pascal语言编译为c,然后编译运行-Pascal language will be compiled to c, and then compile and run
Platform: |
Size: 93184 |
Author: 王龙 |
Hits:
Description: 编译原理实验,词法分析例子,简单的说明lex的理解-Compiler principle experiment, the lexical analysis example, a simple description of the understanding of the lex
Platform: |
Size: 1024 |
Author: meijie |
Hits:
Description: 源语言是PL0语言,PL0语言是PASCAL语言的子集。通过完成扩展的PL0词法分析程序,掌握词法分析实现机制。-The source language is a the the PL0 language, the PL0 language is a subset of the PASCAL language. By completion of the extended the the PL0 lexical analysis of the program, master lexical analysis mechanism.
Platform: |
Size: 2048 |
Author: 叶素芬 |
Hits:
Description: 编译原理的pascal 语言的词法分析并产生二元式-Pascal language compiler theory lexical analysis and generate binary type
Platform: |
Size: 1024 |
Author: 蒋摇 |
Hits:
Description: LEX和YACC编写的标准PASCAL语法,bnf形式。-* Pascal grammar in Yacc format, based originally on BNF given in "Standard Pascal-- User Reference Manual", by Doug Cooper. This in turn is the BNF given by the ANSI and ISO Pascal standards, and so, is PUBLIC DOMAIN. The grammar is for ISO Level 0 Pascal. The grammar has been massaged somewhat to make it LALR, and added the following extensions.
Platform: |
Size: 4096 |
Author: mudell |
Hits: