搜索资源列表
用SLR1分析表达式文法
- 用SLR1分析表达式文法,文法的产生式为 E->T|E+T T->F|T*F F->i|(E),Analysis with SLR1 expression grammar, generative grammar for E->T|E+T T->F|T*F F->i|(E)
kechengsheji
- 编译原理课程设计(包括语法分析,词法分析,语义分析及设计报告)-Compiler design principles of curriculum (including syntax analysis, lexical analysis, semantic analysis and design report)
fenxi
- 设计并实现C语言的词法分析程序,要求如下: (1) 可以识别出用C语言编写的源程序中每个单词符号,并以记号的形式输出每个单词符号。 (2) 可以识别并读取源程序的注释。 (3) 可以统计源程序中的预计行数,单词个数和字符个数,其中标点和空格不计算为单词,并输出统计结果。 (4) 检察源程序中存在的错误,并可以报告错误所在的行列位置。 (5) 发现源程序中存在的错误,进行是党的恢复,使词法分析可以继续进行, 依次词法分析处理,可以检查并报告源程序中存在的所有错误。-CiFaFe
CIFAFENXI
- C语言 词法分析器。 (1) 可以识别出用C语言编写的源程序中的每个单词符号,并以记号的形式输出每个单词符号. (2) 可以识别并读取源程序中的注释. (3) 可以统计源程序中的语句行数、单词个数和字符个数,其中标点和空格不计算为单词,输出统计结果. (4) 检查源程序中存在的非法字符错误,并可以报告错误所在的行列位置. (5) 发现源程序中存在错误后,进行适当的恢复,使词法分析可以继续进行,通过一次词法分析处理, 可以检查并报告源程序中存在的所有词法拼写错误.-C l
mml.doc
- 编译原理 课程设计报告: 预测分析表的构造- The translation principle curriculum designs reported that, Forecasts the analytical table the structure
LL1ParsingCode
- LL1语法分析程序,输入文法表达式能够自动输出预测分析表,判断是否为LL1文法,还可以再输入任意的一个句子,然后对其进行分析,给出分析进栈出战的详细过程-LL1 parser, enter the grammar of expression that can automatically predict the output table to determine whether the LL1 grammar, you can enter any of a sentence, and then a
LR1
- 采用VC编程的LR分析法,代码可以直接运行,可以帮助理解编译原理中的LR构造分析法-VC programming using LR analysis, the code can be directly run, the compiler can help to understand the principle of structural analysis of the LR method
COMPILE
- 一个简单的JAVA编译原理作业 词法分析 语法分析 语义分析 -JAVA compile a simple operating principle of lexical semantic analysis of grammatical analysis
PL0
- PL0的语义分析 语法分析 和语义分析 四元式输出-PL0 parsing of semantic analysis and semantic analysis of four output
C-bianyi
- 一个完整的关于c-的编译器,包含词法分析和语法分析。-On a complete c-compiler, including lexical analysis and syntax analysis.
Compile_principle_experiment
- 编译原理实验+报告+流程图 词法分析实验 语法分析 语义分析 每个实验都附上详细的流程图与代码-Compile principle experiment+ report+ lexical analysis of experimental flow chart parsing semantic analysis For each experiment, with detailed flow chart and code
LR0
- (1)构造文法G的LR(0)项目 (2)构造文法G的LR(0)项目集规范族及识别活前缀的DFA (3)证明文法G不是LR(0)文法而是SLR(1)文法,并构造SLR(1)分析表 (4)设计LR语法分析程序,且能输出分析过程 (5)列举两个例子测试语法分析程序(识别失败一例,识别成功一例,后者推导步骤不得少于10步) -(1) construct grammar G of the LR (0) item (2) construct grammar G of the LR (0)
bianyi
- pl0 编译原理程序,词法分析,语法分析,中间代码生成,模拟执行-pl0 compiler theory procedures, lexical analysis, syntax analysis, intermediate code generation, simulation execution
compiler
- 这是一个简单的c编译器,可以实现词法分析,语法分析,语义分析,并能输出四元式,界面不是很好看,但功能可以很好的实现。-This is a simple c compiler can achieve lexical analysis, syntax analysis, semantic analysis, and output quaternion type, interface is not very good looking, but the function can be realized.
SLR1
- 该程序为一个手工编码实现的简单SLR语法分析器,其词法分析器调用接口为lex(),语法分析调用接口为SLR1()。-The program is a simple hand-coded implementation SLR parser, the lexical analyzer is called interface lex (), parsing call interface for the SLR1 ().
LL(1)_LR(0)_Demo
- 包括一个LR(1)的语法分析程序和一个LL(1)的语法分析程序的例子- Including LR (1) grammar analysis program and LL (1) grammar analysis program example
递归下降分析(大作业)
- 递归下降词法分析,很不错的一个词法分析器-recursive drop lexical analysis, a very good lexical analyzer
词法分析
- 这篇博文主要说的就是词法分析,也就是把输入的符号串整理成特定的词素。(The main topic of this blog is lexical analysis, that is, the string of input is arranged into a specific morpheme.)
词法分析程序
- 词法分析 输入:所给文法的源程序字符串。 输出:二元组(syn,token或sum)构成的序列。(lexical analysis Input: the source code string for the given grammar. Output: a sequence consisting of two tuples (syn, token, or sum).)
词法分析
- 词法分析(英语: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
