Welcome![Sign In][Sign Up]
Location:
Search - a complete simple compiler in c

Search list

[ELanguageFANYICHENGXU

Description: IF-ELSE条件语句的翻译程序设计(简单优先法、输出三地址表示) 要求完成的主要任务: (包括课程设计工作量及其技术要求,以及说明书撰写等具体要求) (1) 写出符合给定的语法分析方法的文法及属性文法。 (2) 完成题目要求的中间代码三地址表示的描述。 (3) 写出给定的语法分析方法的思想,完成语法分析和语义分析程序设计。 -IF-ELSE conditional statements translation program design (simple priority method, the output c express address) required to complete the main tasks: (including curriculum design and the technical requirements of the workload, as well as to write brochures and other specific requirements) (1) write in line with the set grammar analysis grammar and attribute grammar. (2) between the completion of the requirements of Title III address code express description. (3) write a given grammar analysis methods of thought, the completion of grammar analysis and semantic analysis of program design.
Platform: | Size: 104448 | Author: 朱晓文 | Hits:

[ELanguageCompiler

Description: 编译课上做的小程序,用四种分析方法分别实现(LL1,算符优先,递归下降,简单词法分析) 完成对正则文法所描述的Pascal语言子集单词符号的词法分析程序。 <标识符>→字母︱ <标识符>字母︱ <标识符>数字 <无符号整数>→数字︱ <无符号整数>数字 <单字符分界符> →+ ︱- ︱* ︱ ︱(︱) <双字符分界符>→<大于>=︱<小于>=︱<小于>>︱<冒号>=︱<斜竖>* <小于>→< <等于>→= <大于>→> <冒号> →: <斜竖> →/ 识别语言的保留字 :begin end if then else for do while and or not-Compiler class to do a small procedure, analytical methods were used to achieve four (LL1, operator priority, recursive descent, a simple lexical analysis) to complete the grammar is described in a subset of the Pascal language word lexical analysis program symbols. < Identifier> → letters ︱ < identifier> letters ︱ < identifier> figures < unsigned integer> → Digital ︱ < unsigned integer> figures < single character boundaries Fu> →+ ︱- ︱ ︱* ︱ (︱) < two-character boundaries Fu> → < greater than> = ︱ < less than> = ︱ < less than> > ︱ < colon> = ︱ < oblique vertical> * < less than> → < < equal> → = < greater than> →> < colon> →: < oblique vertical> →/recognition of language reserved word: begin end if then else for do while and or not
Platform: | Size: 483328 | Author: 丁丁 | Hits:

[ELanguageyufafenxishiyan

Description: 设计一个简单的词法分析器,从而进一步加深对词法分析器工作原理的理解。了解编译原理中词法分析器的原理,并用一种编程语言的具体代码实现简单的词法分析器的功能(在这里我使用C语言实现,代码可以完成简单的C语言程序中的关键词,变量,分界符,数字,运算符,赋值符。)-Design a simple lexical analyzer to further deepen the understanding of the lexical analyzer works. Compiler theory to understand the principles of lexical analyzer, and using a programming language specific code to achieve a simple lexical analyzer function (here I use the C language, the code can complete a simple C language program in the key words, variables, delimiter, numbers, operators, assignment operator.)
Platform: | Size: 109568 | Author: | Hits:

[Windows Developscmd_SNL_C_con

Description: snl语言是一个简单的具有嵌套过程定义的过程式语言,本原码用C语言实现了SNL语言的词法分析,语法分析,语义分析析,中间代码生成,中间代码优化,目标代码优化的完整模块,并有极为详细的注释,是学习编译原理的极佳材料。-the snl language is a simple process language with nested process definition, the primitive code in C language SNL language lexical analysis, parsing, semantic analysis, analysis, intermediate code generation, optimization of intermediate code, object code optimized complete module, and a very detailed notes, is an excellent material for learning compiler theory.
Platform: | Size: 233472 | Author: 谈判 | Hits:

[Consolequiz-game

Description: Quiz Game Mini Project in C. This is a complete and error-free Quiz Game Mini Project in C designed as a simple console application. In this project, a number of questions are asked, and the user is awarded cash prize for each correct answer given. Questions are chosen in such a a way that they cover all fields of an archetypal quiz game. The user’s general knowledge is tested with quiz questions regarding science, technology, movies, sports, general health, geography and many more. The source code is to be compiled in Code::Blocks with gcc compiler. This quiz game mini project in C is not designed to run on the Turbo C versions. The source code for this project is around 1000 lines.
Platform: | Size: 16384 | Author: | Hits:

CodeBus www.codebus.net