Description: 用C语言编写的pascal词法分析程序,识别程序子集的文法-C language prepared by the pascal lexical analysis procedure, the identification procedures subset of grammar Platform: |
Size: 1164 |
Author:刘思远 |
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: 2026 |
Author:刘斌 |
Hits:
Description: 用C语言编写的pascal词法分析程序,识别程序子集的文法-C language prepared by the pascal lexical analysis procedure, the identification procedures subset of grammar Platform: |
Size: 1024 |
Author:刘思远 |
Hits:
Description: 本程序是用pascal语言编写的编译原理小程序,包括词法分析,语法分析,语意分析,优化及目标代码生成-this procedure is used pascal language compiler principles of small programs, including lexical analysis, grammar analysis, semantic analysis, optimization and object code generation Platform: |
Size: 7581696 |
Author:碧云天 |
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语言词法分析程序,与大家共同学习。-Compilation Principle recent study courses, wrote a grammar of such a simple procedure, to achieve simplification of grammar, grammar transformation, the elimination of production space, the elimination of a single production, the elimination of useless production functions. Followed by a good Pascal language lexical analysis procedures, and we all learn together. Platform: |
Size: 20480 |
Author:周龙亭 |
Hits:
Description: 编译原理课程设计总结报告
1.设计题目及相关内容
本课程设计完成的是递归下降分析法。对算术表达式和赋值语句进行语义分析并生成四元式序列。其中,本设计用C语言对简单的pascal语言子集编制一个编译程序。语义分析输入的是语法分析后提供的单词串,而语法分析的输入是词法分析的程序所提供的单词序列。要求把语法分析程序和词法分析都作为子程序调用,其中输入字符串要用文件操作。
2.运行环境(软、硬件环境)
硬件环境:方正电脑,P4CPU,512M内存
软件环境:Visualc++6.0
3.算法设计的思想
本设计题目的实现,使用了多个程序,包括语义分析,语法分析和词法分析。
-Principles of curriculum design to compile a summary report
1. The design of the subject and related content
This course is designed drop recursive analysis. Of arithmetic expressions and assignment statements and generate semantic analysis of quaternion sequence. Among them, the design of a simple C language pascal language subset of the preparation of a compiler. Semantic analysis is parsing the input after the word string, and parsing the input lexical analysis procedure is provided by the word sequence. Procedures require parsing and lexical analysis are called as a subroutine, which enter the string to use file operations.
2. Operating environment (software and hardware environment)
Hardware environment: PC Founder, P4CPU, 512M memory
Software Environment: Visualc++6.0
3. Algorithm design thinking
The realization of the design subject, the use of a number of procedures, including semantic analysis, syntax analysis and lexical analysis. Platform: |
Size: 2659328 |
Author:爱爱爱 |
Hits:
Description: 源语言是PL0语言,PL0语言是PASCAL语言的子集。通过完成扩展的PL0词法分析程序,掌握词法分析实现机制。-PL0 source language is the language, PL0 language is a subset of PASCAL language. PL0 by completing the expansion process of lexical analysis, lexical analysis to achieve control mechanism. Platform: |
Size: 2048 |
Author:林青松 |
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编译器,全部都是手工写的词法分析,语法分析,中间代码生成器。-Able to output the code in the middle of the PASCAL compiler, all of them are written by hand lexical analysis, syntax analysis, intermediate code generator. Platform: |
Size: 924672 |
Author:太原公子 |
Hits:
Description: Java 词法分析程序 产生一个二元式文本文件,扩展名为dyd,可将Pascal或C程序(测试程序)分解成为一个一个的单词及类型,并查“单词符号与种别对照表”得出其种别,用一数字表示。-Java lexical analysis procedure to produce a two yuan a text file, an extension of dyd, can be Pascal or C program (test procedures) is decomposed into words and type A, and check word symbols and don t control table that the species, represented by a digital. Platform: |
Size: 3072 |
Author:pc |
Hits:
Description: 这程序实现pascal词法分析,把源程序逐行读入一个字符串缓冲区中,然后逐行分析-PASCAL lexical analysis, the program source code line by line to read in a string buffer, and line by line analysis Platform: |
Size: 12288 |
Author:Rgzeeicq |
Hits:
Description: 这程序实现pascal词法分析,把源程序逐行读入一个字符串缓冲区中,然后逐行分析-PASCAL lexical analysis, the program source code line by line to read in a string buffer, and line by line analysis Platform: |
Size: 11264 |
Author:Hzlekjc |
Hits:
Description: 这程序实现pascal词法分析,把源程序逐行读入一个字符串缓冲区中,然后逐行分析(PASCAL lexical analysis, the program source code line by line to read in a string buffer, and line by line analysis) Platform: |
Size: 10240 |
Author:Hafrx
|
Hits: