搜索资源列表
mm
- 编译原理课程设计,算术表达式的语法和语义分析,采用预测分析法,中间代码四元式
用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
DFA
- 输入一个正则表达式,输出相应的NFA图,NFA转换为DFA(得到的DFA图要求用画图方法完成并要求先产生子集构造表出来再画DFA图),DFA最小化(也要求用画图方法完成) -Enter a regular expression, the output corresponding NFA map, NFA is converted to DFA (the DFA plans to be asked to use drawing methods and called for the first
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
middle_code
- 编译原理中间代码生成的程序,仅仅实现了表达式到四元式的转换-Compiler theory intermediate code generation process, only to realize the expression of quaternion type of conversion
fuzhiyuju
- 赋值语句的翻译程序,采用递归下降法对输入的表达式进行翻译。-Assignment of the translation process, using recursive descent translation of the input expression.
yuyifenxi
- 采用递归下降语法制导翻译法,对算法表达式、赋值语句进行语义分析且生成四元式序列-Decline in the use of recursive grammar-translation method guided the algorithm expression, assignment and semantic analysis to generate quaternary sequence
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
IncBuildNo
- IncBuildNo是个命令行工具,与VS配合即可完成递增版本号的任务。如果你采用第一种版本号风格,IncBuildNo也能很好地胜任。IncBuildNo甚至可以干别的递增数字的工作,不仅仅是版本号,因为运行它时需要的参数之一是正则表达式。-IncBuildNo is a command-line tool to increment the version number of the task can be completed in conjunction with VS. If you us
Postfix
- 中山大学编译原理实验三 后缀表达式Postfix-Postfix
jakarta-oro-2.0.8
- jakarta-oro-2.0.8 正则表达式 引擎 源代码-jakarta-oro-2.0.8 regular expression engine source code
typeof
- typeof,编译时获取表达式类型运算符,是gcc编译器的一个扩展(intel编译器 也支持). 笔者最近作一个项目时需要用比较hack的手段把第三方的dll(无lib但有头文件)里面的外部函数以函数指针的方式提取出来给其他模块作全局变量用,500多个函数呀,声明函数指针可不是个轻松事,类型名字至少排满一行,写了50多个就受不了了. 找了boost的typeof,把里面的代码大幅度简化,提炼,去掉一些依赖.请使用TYPEOF宏,无任何运行时开销。 本版本利用了vc6的1个bug(子类
2
- 设计并实现C语言的语分析程序,实现对算术表达式的语法分析。要求所分析算术表达式由如下的文法G产生: EE+T|E-T|T TT*F|T/F|F Fid|(E)|num 实验要求:在对输入表示进行分析的过程中,输出所采用的产生式。-Design and implement C language, language analysis program to realize the arithmetic expression parsing. Requirements of a
yufafenxi
- 实验内容: 可选择LL1分析法、算符优先分析法、LR分析法之一,实现如下表达式文法的语法分析器: (1)E→E+T | E-T | T (2)T→T*F | T/F | F (3)F→P^F | P (4)P→(E) | i -Experiment: optional the LL1 analysis method, the operator precedence analysis, LR analysis, one of the following expre
nfa
- 这是正则表达式到NFA的转换源代码,自己编写的,希望有点用-This is a positive expression to NFA conversion source code I have written, I hope a little bit with
NFA-DFA-MFA
- 正则表达式及NFA-DFA-MFA的转换和判别-Regular expressions and NFA-DFA-MFA conversion and discriminant
根据某一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
nibolan
- 非后缀式用来表示的算术表达式转换为用逆波兰式来表示的算术表达式,并计算用逆波兰式来表示的算术表达式的值。-Suffix used to represent arithmetic expressions arithmetic expression converted to Reverse Polish Notation, and calculate the value of the arithmetic expression Reverse Polish Notation.
语法分析器
- 输入一个表达式,若此表达式是算数表达式,则输出right,否则输出ERROR.(Enter an expression, if the expression is the arithmetic expression, the output right, ERROR. otherwise.)