CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - main.c
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Sub Category
assembly language
SCSI-ASPI
ELanguage
Disk Tools
Speech/Voice recognition/combine
Editor
Anti-virus
MultiLanguage
MPI
source in ebook
Delphi VCL
OS Develop
MiddleWare
MacOS develop
LabView
e-language
python
Search - main.c - List
[
ELanguage
]
词法分析编译原理实验c++
DL : 1
一个很不错的c++ 程序!是编译系统的第一个程序,主要功能实现词法分析!通过对文本的编译,实现词法分析-a very good procedures c! The build system is the first procedure, the main function of achieving lexical analysis! The text adopted by the compiler to achieve lexical analysis
Date
: 2008-10-13
Size
: 2.05kb
User
:
kang
[
ELanguage
]
main
DL : 0
一个简单的类C语言的编译器的实现 可以参考学习编译原理的基本实现-a simple C-like programming language compiler can refer to the realization of the principle of learning basic compiler to achieve
Date
: 2008-10-13
Size
: 202.25kb
User
:
魏本峰
[
ELanguage
]
c++cffxq
DL : 0
一个可以识别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..
Date
: 2008-10-13
Size
: 4.01kb
User
:
张旧
[
ELanguage
]
编译原理---算浮优先算法
DL : 0
简单介绍一下,整个工程分为5个文件:Main.c ----- 程序的入口点,其实很简单,就是调用两个函数。Global.h ----- 定义了一些全局变量及宏Parse.h ----- 语法分析器的主要算法Prece.h ----- 定义和实现了一些关于优先级的操作Stack.h ----- 定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来。:)-brief introduction, the entire project is divided into five documents : Main.c ----- procedure entry point, it is actually very simple, it is called two functions. Global.h ----- definition of global variables and Wang Parse.h ----- parser the main algorithm Prece.h ----- definition and realization of a number of priority the operation Stack.h ----- the definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge to use them to the actual program, which works to use the modular thinking, data structure knowledge we learned, the Ruins of
Date
: 2008-10-13
Size
: 11.82kb
User
:
李雷
[
ELanguage
]
170054yufa 1234234234
DL : 0
定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来-definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge to use them to the actual program, which works to use the modular thinking, data structure knowledge we learned, the Ruins of St. Paul, I hope you will in the final period put the ability to write procedures trained out
Date
: 2008-10-13
Size
: 184.15kb
User
:
张学友
[
ELanguage
]
c++cffxq
DL : 0
一个可以识别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..
Date
: 2025-12-19
Size
: 4kb
User
:
张旧
[
ELanguage
]
hc_compiler
DL : 0
由于时间紧迫及事先准备不足,编译器最后定型时暴露出不少问题及不足之处,主要有以下一些方面: 不支持数组数据类型,这是文法分析器设计时的一个疏漏,由于时间关系,最后只得把扫描器中已做好的相关的数组部分删去。 对于float数据类型的支持,直到语义分析都是正常的,也能生成相应的汇编代码,但由于我们对8086/8088指令系统本身了解不足,这样的汇编代码将只能做到含义上完全忠实于源程序,但不能运行。 对于局部变量的支持,则于时间紧迫,所有的局部变量全被处理成静态变量。使递归函数不能得到正确的结果。 对于函数调用语句,不进行参数匹配检查,如果参数数量不对,也将能通过编译,但运行时将产生非法操作。 对&& !等逻辑操作在最后生成代码时处理比较粗燥,生成的代码在逻辑复杂时将不能保证运行正常。 接下来有一些,不能说是缺陷,但必须说明的问题: 对于main函数,没有参数表,通回类型也必须为void,但如果写上参数表及其他返回类型也能编译通过,生成代码时将简单地忽略,不影响最后的代码的运行。 对于while,for,if语句,其语句体不管是一句还是多句,必须都有{}围起来。这跟C语言中若是一句则可省略{}不同。-Due to the time constraints and lack of preparation in advance, the compiler finalized when exposed numerous problems and shortcomings, mainly in the following aspects : no support for array data type, which is grammar analyzer design of an omission, because of the time, the final could only have scanners do phase customs array deleted. For float data types of support until semantic analysis is normal, and can generate the corresponding assembly code, but because of our 8086/8088 directive to the knowledge of the system itself, this compilation can do to code meaning entirely faithful to the source, but not running. For the support of local variables, in the time constraints, all local variables were all handled in the static variable. So recursive function will not get the right results.
Date
: 2025-12-19
Size
: 254kb
User
:
周杰
[
ELanguage
]
170054yufa 1234234234
DL : 0
定义和实现了一个栈及其操作编译的时候只要用TC2.0或者WinTC打开Main.c文件进行编译就好了。如发现有Bug请在这里贴出来或者把修改后的代码跟帖在这里:)总之,这个工程仅仅是一个简单示例,告诉大家怎么样把课堂上学到的知识运用到实际编程当中去,工程中所用到的模块化思想,数据结构等知识都是大家学过的,大三了,希望大家在最后这段时间里把写程序的本领练就出来-definition and implementation of a stack and operation of the compiler used whenever WITH TC 2.0 or WinTC open Main.c documents compiled enough. If found please Bug out here or affixed to amend the code of Columbia here :) Overall, the project is just a simple example, like to tell you how to put classroom knowledge to use them to the actual program, which works to use the modular thinking, data structure knowledge we learned, the Ruins of St. Paul, I hope you will in the final period put the ability to write procedures trained out
Date
: 2025-12-19
Size
: 184kb
User
:
张学友
[
ELanguage
]
C_minus语言说明
DL : 0
C_minus语言的BNF语法定义 程序由声明的列表(或序列)组成,声明可以是函数或变量声明,顺序是任意的。至少必须有一个声明。接下来是语义限制(这些在C中不会出现)。所有的变量和函数在使用前必须声明(这避免了向后backpatching引用)。程序中最后的声明必须是一个函数声明,名字为main。注意,C-缺乏原型,因此声明和定义之间没有区别(像C一样)。-C_minus BNF language syntax definition of procedures from the list of statement (or sequence), with a statement can be variable or function statement, the order is arbitrary. There must be at least one statement. Next is the semantic constraints (these will not arise C). All the variables and functions to be used in the statement (which avoids the use Backpatching backwards). Procedures must be the last statement is a function declaration, the name of the main. Attention C- lack of a prototype, and the definition of a statement is no difference between (the same as C).
Date
: 2025-12-19
Size
: 6kb
User
:
林丰
[
ELanguage
]
词法分析编译原理实验c++
DL : 0
一个很不错的c++ 程序!是编译系统的第一个程序,主要功能实现词法分析!通过对文本的编译,实现词法分析-a very good procedures c! The build system is the first procedure, the main function of achieving lexical analysis! The text adopted by the compiler to achieve lexical analysis
Date
: 2025-12-19
Size
: 2kb
User
:
kang
[
ELanguage
]
main
DL : 0
一个简单的类C语言的编译器的实现 可以参考学习编译原理的基本实现-a simple C-like programming language compiler can refer to the realization of the principle of learning basic compiler to achieve
Date
: 2025-12-19
Size
: 202kb
User
:
魏本峰
[
ELanguage
]
cmm
DL : 0
简单C编译器生成的目标代码是8086的汇编代码(16位),可以在一般的PC上被像MASM之类的汇编编译程序编译,生成可执行文件后,在DOS或Windows控制台下运行。 实现的语言定义如下: 语言类似于tiny语言,不支持过程调用,也就是只有一个main函数,无其他函数和全局变量 基本语句:注释语句(/*…*/),输入语句(int input(void) ),输出语句(void output(int) ),赋值语句。这里的输入输出语句实际上类似于函数调用,可以看作是本语言内部的函数 算术运算符:+、—、*、/ 数据类型:整数.-Simple C compiler generated object code is 8086 assembly code (16), the PC in general were such as MASM compilation compiler compiler to generate executable file, in DOS or Windows console run. The realization of the language are defined as follows: the language is similar to tiny language, do not support the procedure call, that is, there is only one main function, no other function and global variable basic statement: Note statement (/* ...* /), type the statement (int input (void )), the output statement (void output (int)), assignment statements. The input and output statements in fact similar to function calls, can be seen as a function of the language within the Arithmetic Operators: 2B !,-,*,/ data types: integer.
Date
: 2025-12-19
Size
: 403kb
User
:
Tony
[
ELanguage
]
lexer
DL : 0
自己用C语言编写的一个关于词法分析器的源代码,里面包括设计思想和主要算法。-Their own language with a C on the lexical analyzer source code, which includes design ideas and the main algorithm.
Date
: 2025-12-19
Size
: 25kb
User
:
[
ELanguage
]
ccifafenxiqi
DL : 0
编译原理(C语言词法分析器的设计与实现) 一.实验目的: 1.强化对系统软件综合工程实现能力、规划能力的训练; 2.加强对词法分析原理、方法和基本实现技术的理解; 二.实验内容: 用C语言(或 C++ )作为宿主语言完成: C语言(ANSI C或turbo C 2.0)词法分析器的设计和实现。 三、程序简要说明: 1、属性字说明: 2、源程序主要流程: 3、主要数据结构: 4、部分附加功能处理技巧说明: 5、函数列表和简单说明 四、源程序-Compiler Construction Principles (C language lexical Analyzer Design and Implementation) 1. Experimental purposes: 1. To strengthen the system software to achieve the capacity of integrated engineering, planning capacity training 2. Strengthen the principle of lexical analysis, methods and basic understanding of technology II. Experiment content: using C language (or C++) As the completion of the host language: C Language (ANSI C or turbo C 2.0) lexical analyzer design and realize. Third, a brief description of the procedure: 1, attribute words: 2, the main source flow: 3, the main data structures: 4, some additional features that deal with skills: 5, function list and brief description of four or source
Date
: 2025-12-19
Size
: 22kb
User
:
邹恒
[
ELanguage
]
3_grammar
DL : 0
C写的一个语法分析器,输入可包含main,int,void,if,else,do,while几个关键字,算符可包括+,-,*,/,++,--,==,!=,<,>,<=,>=,输出求解过程-Write a C parser, type may include main, int, void, if, else, do, while a number of keywords, operators may include+,-,*,/,++,--,==, solving process !=,< ,> ,< =,> =, output
Date
: 2025-12-19
Size
: 12kb
User
:
李子超
[
ELanguage
]
Simple_Language_Lexer
DL : 0
这是一个使用了LEX所编写的Simple语言的词法分析器。Simple语言的定义说明请看附件。这个LEX的源代码可以通过Parser Generator 2来转化成为h文件跟cpp文件。由于编译这两个文件需要使用到Parser Generator 2的C++库,所以就只上传了LEX的源代码,谁感兴趣的可以自己通过Parser Generator 2来转化。至于UNIX下面的LEX工具如果想要转化的话需要修改其主程序,另外需要将LEX源代码之中有关C++语言的表达形式修改成为相应的C语言的表现形式才行之。总体这样子。-This is one written by using the LEX lexical analyzer Simple language. Simple definition of the language description see annex. The LEX source code can be transformed into Parser Generator 2 to h file with the cpp file. As the compilation of these two files need to use the Parser Generator 2 in C++ library, so we just uploaded the source code for LEX, who may be of interest to themselves through Parser Generator 2 to transform. As for the UNIX tools LEX below if you want converted, then need to modify its main program, another will need to LEX source code into the C++ language, forms of expression changes as the corresponding C-language expressions of Caixing. Overall like this.
Date
: 2025-12-19
Size
: 178kb
User
:
林宇浩
[
ELanguage
]
main
DL : 0
编译原理课程实验,NFA到DFA转换及化简的C++语言实现。-Compiler theory course experiment, NFA to DFA Conversion and Reduction of C++ language.
Date
: 2025-12-19
Size
: 11kb
User
:
shirley
[
ELanguage
]
Main
DL : 0
C0解释器 主要完成的事C++的作业 可以看一下哦-C0 interpreter
Date
: 2025-12-19
Size
: 153kb
User
:
王星
[
ELanguage
]
main
DL : 0
本程序是一个C++单词分析程序。实现将输入文件源代码经过分析分类,输出各类单词,如关键字,运算符,常量,变量等-This program is a C++ word analysis program. Achieved through the analysis of source code input file classification, the output types of words, such as keywords, operators, constants, variables, etc.
Date
: 2025-12-19
Size
: 3kb
User
:
coolibin
[
ELanguage
]
C--Compiler
DL : 0
C--编译器的实现代码 主要实现C--程序的语法错误 包括变量名、函数等的检查 YACC 和 Lex 在linux下编译通过 -C- compiler implementations code of the main C- syntax error process include variable names, functions, etc. Check YACC and Lex compile under linux
Date
: 2025-12-19
Size
: 47kb
User
:
mk
«
1
2
3
»
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.