搜索资源列表
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
analyse
- 来自课程实验,属于编译原理程序,能进行词法分析,结果比较清晰-From the course of experiments, belonging to the compiler principle, can carry out the lexical analysis, the results are clear
scanner
- C++源代码单词扫描程序(词法分析) 功能: (1)C++源代码扫描程序识别C++记号。 C++语言包含了几种类型的记号:标识符,关键字,数(包括整数、浮点数),字符串、注释、特殊符号(分界符)和运算符号等。 (2)打开一个C++源文件,打印出所有以上的记号。 (3)要求应用程序应为Windows界面。 (4)选作部分:为了提高C++源程序的可读性,C++程序在书写过程中加入了空行、空格、缩进、注释等。假设你想牺牲可读性,以节省磁盘空间,那么你可以存贮一个删除了所
lab1
- 任务是编写一个程序对使用C 语言书写的源代码进行词法分析和语法分析(C 语言的文法参见附录A),并打印分析结果。实验要求使用词法分析工具GNU Flex和语法分析工具GNU Bison,并使用C语言来完成。在两个强大工具的帮助下,编写一个能进行词法分析和语法分析的程序是一件相当轻松愉快的事情。 需要注意的是,由于在后面的实验中还会用到本次实验已经写好的代码,因此保持一个良好的代码风格、系统地设计代码结构和各模块之间的接口对于整个实验来讲相当重要。 -The ta
lab2
- 任务是在词法分析和语法分析程序的基础上编写一个程序,对C 源代码进行语义分析和类型检查,并打印分析结果。与实验一不同的是,实验二不再借助已有的工具,所有的任务都必须手写代码来完成。另外,虽然语义分析在整个编译器的实现中并不是难度最大的任务,但却是最细致、琐碎的任务。因此需要用心地设计诸如符号表、变量类型等数据结构的实现细节,从而正确、高效地实现语义分析的各种功能。 需要注意的是,由于在后面的实验中还会用到本次实验已经写好的代码,因此保持一个良好的代码风格、系统地设计代码结构和
CGCompiler-master
- 一个编译器(仅词法分析、语法分析、部分语义分析,所以说是前端),拿来分享一下。 整个代码库具有如下功能: 提供编译器所需基础数据结构、计算流程框架类,可供继承使用; 提供基础数据结构的可视化控件; 提供类似YACC的词法分析器、语法分析器自动生成功能; 提供Win form程序,集成和扩展上述功能,方便研究和应用。-A compiler (only lexical analysis, syntax analysis, semantic analysis secti
pro3
- C++版本的LEX词法分析器,只采用LEX,没有YACC。直接运行输入C语言程序,控制台输出词法分析的结果。-C++ version of the LEX lexical analyzer, only the use of LEX, there is no YACC, the direct operation of the input C language program, the results of the console output lexical analysis.
bison-and-flex
- 利用bison和flex实现简单的词法分析以及语法分析,带有测试程序以及编译说明-Simple lexical analysis and parsing with bison and flex, with test programs and compile instructions
syndtctzc-analysis
- VC实现的PL0编译器,该程序实现词法分析,语法分析及语义分析-VC realize PL0 compiler, the program realization of lexical analysis, syntactic analysis and semantic analysis
mjndun
- 这程序实现pascal词法分析,把源程序逐行读入一个字符串缓冲区中,然后逐行分析-PASCAL lexical analysis, the program source code line by line to read in a string buffer, and line by line analysis
182839
- Lex与Yacc相关的程序,有对sql的词法分析和语法分析的程序-Lex and Yacc related procedures, there are lexical analysis and syntax analysis of SQL procedures
sqbtupe-characteristic
- 词法语法分析器,学习编译原理时做的词法和语法分析程序,-Lexical parser, learning to compile principle of lexical and syntax analysis program,
PL5
- VC实现的PL0编译器,该程序实现词法分析,语法分析及语义分析-VC realize PL0 compiler, the program realization of lexical analysis, syntactic analysis and semantic analysis
chde-anglysis
- 这程序实现pascal词法分析,把源程序逐行读入一个字符串缓冲区中,然后逐行分析-PASCAL lexical analysis, the program source code line by line to read in a string buffer, and line by line analysis
esvape-token
- 学习编译原理时做的词法和语法分析程序,词法和语法分析封装在一个类CFenXi中-Learn the compilation principle when doing the lexical and syntax analysis program, the lexical and syntax analysis package in a class CFenXi
CAenXr
- 学习编译原理时做的词法和语法分析程序,词法和语法分析封装在一个类CFenXi中(Learn the compilation principle when doing the lexical and syntax analysis program, the lexical and syntax analysis package in a class CFenXi)
apd
- VC实现的PL0编译器,该程序实现词法分析,语法分析及语义分析(VC realize PL0 compiler, the program realization of lexical analysis, syntactic analysis and semantic analysis)
zwvwk1
- 这程序实现pascal词法分析,把源程序逐行读入一个字符串缓冲区中,然后逐行分析(PASCAL lexical analysis, the program source code line by line to read in a string buffer, and line by line analysis)
dojh
- 词法语法分析器,学习编译原理时做的词法和语法分析程序,(Lexical parser, learning to compile principle of lexical and syntax analysis program,)
newleat
- 状态切换函数解根据一个 DFA 来对输入的文本进行分析,也就是说,如果你做一个新的DFA,就能分析新的词法(According to a DFA state switch function solution to analyze the input text, that is to say, if you do a new DFA, can new lexical analysis)