搜索资源列表
用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)
C0Compiler
- 用c写的c0文法的编译器,基本块内部的公共子表达式删除(DAG图);全局寄存器分配(引用计数或着色算法);数据流分析(通过活跃变量分析,或利用定义-使用链建网等方法建立冲突图)代码生成时合理利用临时寄存器(临时寄存器池),并能生成较高质量的目标代码;生成X86汇编 -C0 written grammar with c compiler
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
lr
- 给出该文法的属性文法,用LR分析法实现对赋值语句的翻译,给出翻译的逆波兰式结果。-Given the grammar attribute grammar, with the realization of LR analysis of the translation of assignment statements are given against the Polish translation of the results.
bianyi
- 编译原理课程设计 MFC开发 单文档界面 LL1文法分析方法 实现到语法分析-no
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)
yufafenxi(LR)
- LR方法 编写语法分析程序,实现对算数表达式的语法分析。要求所分析算数表达式由如下的文法产生。 E->E+T|E-T|T T->T*F|T/F|F F->id|(E)|num 实验要求:在对输入表达式进行分析的过程中,输出所采用的产生式。 -LR parser written methods to achieve parsing of arithmetic expressions. Requirements of arithmetic
Compiler
- c0文法编译器,可生成四元式完成代码优化,再生成汇编语言,由汇编程序解释执行。-c0 grammar compiler can generate code optimized quad-style completion and then generate assembly language, interpreted by the assembler.
c0
- c0文法的简单编译器 课设用的 希望对大家有用 -c0 simple grammar lessons based compiler for all of us with the hope that useful
GrammarAnalysis
- 一个很不错的C++语法分析器,主要使用的是LL1文法,可以自动判断是否为LL1文法,若是,可以对例句进行语法分析-A very good C++ parser, the main use of the LL1 grammar, can automatically determine whether the LL1 grammar, and if so, can listen to parse
LR1
- 利用字符二维数组对文法、First集、Follow集、终结符集、非终结符集等数据进行存储,还有一个是状态表存储DFA的状态。二维TAB表对其中的DFA表进行存储,横坐标是状态号,纵坐标为文法中的符号(终结符和非终结符)。-Two-dimensional array of characters to use grammar, First Set, Follow sets, at the end of sets, sets and other non-terminator data storage,
LR1-parser
- LR1语法分析器,输入文法,可以对句子进行扫描,并判断句子是否可接收-LR1 parser, the input grammar, you can scan the sentence and determine whether it can receive a sentence
BOCH
- 一个用LISP语言编写的语法分析器。使用Bottom-up Chart Parsing算法,程序非常的简单高效,只有二百多行。另外可以自己定义文法和字典。 源代码公开,主要供对语法分析算法和LISP编程感兴趣的人学习使用,也可以使用在自然语言处理的各种实际研究当中。-A language with LISP parser. The use of Bottom-up Chart Parsing algorithm, the procedure very simple and efficient,
compile
- 编译原理 词法分析程序设计 [实验内容]:根据某文法,构造一基本词法分析程序。找出该语言的关键字、标识符、整数以及其他一些特殊符号,给出单词的种类和值。-Compilation Principle lexical analysis program design [experiment content]: According to a grammar, the basic structure of a lexical analysis program. To identify the la
lll
- 实现了LL(1)文法分析,包括构造First、Follow集、预测分析表,并可检查输入串是否被接受。-The implementation of LL(1) analysis, including constructing the First, Follow set, Predictive Parsing Table. It can also test a string whether it is accepeted.
ansi_c_grammar
- C语言上下文无关文法的词法及语法描述文件,通过使用yacc、lex工具可以生成相关C语言的词法、语法分析的C语言代码-C language context-free grammar to describe the morphology and syntax files, through the use of yacc, lex tool generates C language related to the morphology, syntax analysis, C language code
C0Compiler
- 基于c0文法写的生成p-code的编译器,有词法分析,语法分析,中间代码生成等功能-C0 Writing grammar-based generation of p-code compiler, there is lexical analysis, syntax analysis, intermediate code generation and other functions
WHILE
- WHILE循环语句的翻译程序设计(LL(1)法、输出四元式)1 系统描述(问题域描述); 2 文法及属性文法的描述; -WHILE loop translation of program design (LL (1) method, the output quaternion type) a system descr iption (problem domain descr iption) two grammar and attribute grammar descr iption
根据某一LL(1)文法编制调试预测分析程序
- 根据某一LL(1)文法编制调试预测分析程序,以便对任意输入的符号串进行分析。 本次实验的LL(1)文法为表达式文法: E→E+T | T T→T*F | F F→i | (E) 编写识别表达式文法的合法句子的预测分析程序,对输入的任意符号串,给出分析过程及分析结果。分析过程要求输出步骤、分析栈、剩余输入串和所用产生式。如果该符号串不是表达式文法的合法句子,要给出尽量详细的错误提示。-According to an LL (1) grammar analysis of
compiler_c0
- 基于vs2017,C0文法的编译器实现(无优化)(compiler for c0 grammar)