搜索资源列表
语法分析之左递归实验
- 此为编译原理实验报告 学习消除文法左递规算法,了解消除文法左递规在语法分析中的作用 内含 设计算法 目的 源码 等等.... 算法:消除左递归算法为: (1)把文法G的所有非终结符按任一种顺序排列成P1,P2,…Pn 按此顺序执行 (2)FOR i:=1 TO n DO BEGIN FOR j:=1 DO 把形如Pi→Pjγ的规则改写成 Pi→δ1γ δ2γ … δkγ。其中Pj→δ1 δ2 … δk是关于Pj的所有规则; 消除关于Pi规则的直接左递归性 END (3)化简由(2)所得的文法。即
desk
- 设计SIMPLE语言的词法分析器,编译原理的实验。-SIMPLE language, lexical analyzer design, compile principle experiment.
ExpressionCalculate
- VC++简单的表达式求值程序 VC++简单的表达式求值程序,一直很想做个比 Windows 自带的高级一点的计算器,能将整个表达式输入,然后求值,现在终于做出来了,还有些不完善,源代码用到了编译原理的一些知识,新入门的VC++朋友估计会感觉有点难-VC++ expression evaluation process simple VC++ simple expression evaluation procedures, always wanted to be a senior point t
syyx
- 实现编译原理中的算符优先算法,输出算法实现中的各阶段的数据-Principle of the operator to achieve compile priority algorithm, the output algorithm in the various stages of data
DFA--TO--NFA--simpleDFA
- 程序实现的是编译原理中的NFA到DFA的转换(使用子集构造法)。以及使用等价划分算法实现的DFA的简化-Realize the principle is to compile the NFA to DFA conversion (using the subset construction). As well as simplify the use of equivalence partitioning algorithm to achieve the DFA