搜索资源列表
crt0
- 用C语言编写ARM程序时,执行的第一条指令,并不在main函数中。当我们生成一个C程序的可执行文件时,编译器总是在我们的代码前加一段固定的代码——crt0.o,它是编译器自带的一个文件。此段代码设置C程序的堆栈等,然后调用main函数。很可惜,在我们的裸板上,这段代码无法执行,所以我们得自己写一个。这段代码很简单,只有3条指令。-Using C language ARM program, the implementation of the first instruction is not in
scanner
- C sharp编写的词法分析器,编译原理作业,分析的语言为函数绘图语言。今下午刚验收通过,9.5分。-C sharp written lexical analyzer, compiler theory operation, analysis of the language as a function of drawing language.
cp
- 对c代码进行语法分析,生成语句之间的连接关系,借助dot工具以图形化方式显示,另外解析出每个函数的变量的定义、使用情况 该版本没有加入预处理,预处理功能可以自己开发(有些复杂),也可以借助gnu c的预处理功能-Parse c code to generate the connection between the statement, with the dot tool graphically displays another parse out the variables of ea
FileAnalyze
- c语言编写,对指定文件目录下的.c和.h进行解析,得到包含的头文件,声明的函数,定义的函数,及调用的函数-c language, specify the file directory under c and h parse contains header files, functions declared, defined functions, and the called function
code_analyze
- c++编写,解析指定目录下的.c/.h文件,能够获取c文件的基本元素,如宏定义,头文件包含,函数声明,函数定义,函数调用等,并实现了简单依赖关系查找-c++ write, parse .c/.h files in the specified directory, have access to the basic elements of the c file, such as macro definitions, header file contains function declarations
minic_interpreter
- 一款比较完善的强大的C语言解释器,附带源码,可以嵌入到用户应用程序中。支持对比较复杂的C代码的解释执行。完美支持各种标准C语言语法,如if-else结构语句, ?:结构求值语句,for循环,while循环,do...while循环等 支持各种数据类型包括: char,short,int,string,float 支持多维数组及指针 支持自定义函数以及系统函数 支持局部变量以及全局变量,允许在变量定义时直接初始化 支持局部变量层次化作用域;允许定义系统常量;支持系统内部定义数据类型,但不支持用户在
C--Compiler
- 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
PL0
- pl0拓展文法的编译器,包含实验报告、源码和测试程序。对PL0原编译器进行了以下的扩充:1. 增加以下保留字 else(elsesym), for(forsym),to(tosym),downto(downtosym), return(returnsym),[(lmparen),](rmparen) 2. 增加了以下的运算符: +=(eplus),-=(eminus),++(dplus),--(dminus) 取址运算符&(radsym),指向运算符@(padsym) 3
COMPAILER
- 用C++写的由扩充C0文法写成的编译为MIPS汇编的编译器,在MARS4.2上完美测试通过,支持递归、函数定义、函数调用、数组、四则运算、输入输出等,是我本科花了2个月写的大作业,也留给北航的学弟学妹参考。-Written by C++ grammar written by the expansion of C0 compiler for MIPS assembler compiler tested on MARS4.2 perfect support recursive function de
LexicalAnalysis
- 1、根据以下的正规式,编制正规文法,画出状态图; 标识符 <字母>(<字母>|<数字字符>)* 十进制整数 0 | ((1|2|3|4|5|6|7|8|9)(0|1|2|3|4|5|6|7|8|9)*) 八进制整数 0(1|2|3|4|5|6|7)(0|1|2|3|4|5|6|7)* 十六进制整数 0x(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e|f)(0|1|2|3|4|5|6|7|8|9|a|b|c|d|e
cppreference
- 帮助c/c++更容易学习,它能够离线查找函数,更方便我们编译,可以在codeblock软件上设置 一键查找函数(Help c++ to learn more easily)
Interpreter
- 编译原理课程中函数绘图语言的解释器的C#实现(implementation of interpreter in C#)
词法分析
- 词法分析(英语:lexical analysis)是计算机科学中将字符序列转换为单词(Token)序列的过程。进行词法分析的程序或者函数叫作词法分析器(Lexical analyzer,简称Lexer),也叫扫描器(Scanner)。(Lexical analysis is the process of converting character sequence into token sequence in computer science. The program or function fo