搜索资源列表
myAST
- 语法树 利用graphviz生成某一个java程序的语法树-Syntax tree graphviz to generate a java program syntax tree
YTree
- 自己写的一个简陋的树结构,带泛型。本来是想做为语法树结构,但是自己功力低微>_<!-a simple tree structure.
lab2
- 实验二:TINY扩充语言的语法分析 扩充的语法规则有:实现 while、do while、for语句和求余计算式子,具体文法规则自行构造。 可参考:P97及P136的文法规则。 (1) While-stmt --> while exp do stmt-sequence endwhile (2) Dowhile-stmt-->do stmt-sequence while exp (3) for-stmt-->for identifier:=
antlr-examples-v3
- antlr 语法树的解析程序,学习编译原理还是不错的-antlr syntax tree parsing program, learning objectives
calacomplie
- 设计多个类,实现整数算术表达式的翻译与计算,其中包括: 1. 识别输入字符串中的整数和各种运算符号 2. 判断输入字符串是否满足整数算术表达式的语法规则 3. 对满足语法规则的字符串,采用递归下降分析法、LL(1)分析法、优先分析法或LR分析法,建立输入字符串的语法树 4. 根据语法树,将输入字符串翻译成中间的四元式代码表示 5. 根据四元式代码,计算整个表达式的值并输出 6. 设计合理的输入、输出界面-A program to calculate the result
compile
- 对tiny语义分析器的阅读和分析,理解符号表的定义(栏目设置)与基于抽象语法树的类型检查/推论的实现方法(树遍历)。完成C-语言的符号表的定义设计。规划类型检查/推论的实现方法。实现一种语言的语义分析器-Type checking/inference realization tiny semantic analyzer reading and analysis, to understand the definition of the symbol table (part set) based o
suanfuwenfa
- 实验要求 要求实现语法分析程序的以下功能: 把表达式首先经过词法分析形成二元式记号提供给语法分析程序 如果符合语法要求,形成一个语法树 实验三 算符优先分析 如果出现错误,指出错误的位置和类型 把语法树按照树的前序遍历的形式把所有的结点打印输出 按照某种规则计算出表达式的值-Experimental requirements requirements the parser following features: the expression first formed
testAST
- 使用java的asp,画程序的语法树,需要安装画图工具-failed to translate
JavaCompiler3.0
- Java实现的一个编译器前端,可以生生成符号表和中间虚拟语法树。做了模块化设计,分别对象的前端,中间码还有后端进行的分别实现,任何一部分都可以写成自己的实现。有一个小MX5的测试文件,可以直接运行MX5.java-A compiler in Java implementation, it is be able to generate symbol table and abstract syntax tree, outputting them in a nice XML format. Each
compete
- 构建语法树,自动生成运算表达式,面向对象,易于扩展-Build syntax tree, automatically generate arithmetic expressions, object-oriented, easy to expand
286
- lex,yacc的c编译器,有语法树、代码生成等-c compiler based on yacc and lex,code generated
llvm-qbasic-master
- QBASIC编译器,用yacc、lex等生成,生成语法树(AST),自动代码生成,静态链接运行库-llvm-qbc is a QBASIC compiler as well as an runtime library ( statically linked ).Based on yacc,
project
- 编译原理minic编译器,使用java编写,可生成四元式,语法树-Compiler theory minic compiler, using java prepared, can generate quaternion type, syntax tree
NV-tools
- 1.手机的NV项编辑; 2.具有自动语法解析头文件的功能; 3.保存分析后的语法树。-1 phone NV Item Editor 2 header files with automatic parsing function 3 Save the analysis of the syntax tree.
AST
- 实现java语言语法树的绘制,图片格式输出-Achieve java language syntax tree drawing
shiyan3
- 对四则运算表达式的抽象语法树进行后序遍历,可以得到输入表达式所对应的四元式序列(实验4要用到这样的四元式序列)。例如输入1+2*(3+4),对应的抽象语法树的中序遍历序列、四元式序列分别为-After the abstract syntax tree arithmetic expressions were preorder, you can get input expression quaternion corresponding sequence (Experiment 4 to use th
1
- 可输出中序遍历序列检测程序功能是否正确。如果每个分支节点用一个临时变量标记,则对四则运算表达式的抽象语法树进行后序遍历,可以得到输入表达式所对应的四元式序列(实验4要用到这样的四元式序列)-Preorder output sequence detection program functions correctly. If each branch node labeled with a temporary variable, then the abstract syntax tree arithm
antlrworks-1.4.3-src
- Antlr works 是一个辅助 Antlr 开发的工具。使用 Antlrworks 可以可视化显示文法,并可以对语法分析树和抽象语法树可视化。-Antlr works is a tool developed Antlr auxiliary. You can use the visual display Antlrworks grammar, and can parse tree and abstract syntax tree visualization.
tinycompiler
- Tiny样本语言的编译器。实现了语法分析、词法分析、语法树、三地址码和解释执行。- Tiny sample language compiler. Implements parsing, lexical analysis, syntax trees, three address code and interpreted.
Adder
- javacc编写的加法语法源码实例用jtb处理后创建语法树-Written with javacc addition instance jtb create syntax tree after treatment