阿斯特里 可视化方法,声明,表达式等的抽象语法树。 astree.py Python的组合模块绘制在DOT语言脚本指定的抽象语法树。 是用编程语言(例如Python)编写的源代码抽象句法结构的树表示。 Jumpstart-运行程序: 克隆存储库 $ pip install -r requirements.txt $ python astree.py 输入模块,方法,声明,语句,表达式等查看视频示例。 例如,让我们看一下requests.get方法: >>> Input a method name, expression, etc.: requests.get 注意:请向报告错误。
1
ASTExtractor:Java语法的抽象语法树提取器 ASTExtractor是基于Eclipse编译器的Java源代码的抽象语法树(AST)提取器。 该工具充当Eclipse编译器的包装器,并允许以XML和JSON格式导出源代码文件或项目的AST。 该工具具有命令行界面,也可以用作库。 该文档位于 在命令行模式下执行 执行为: java -jar ASTExtractor.jar -project="path/to/project" -properties="path/to/propertiesfile" -repr=XML|JSON 用于项目,或作为: java -jar ASTExtractor.jar -file="path/to/file" -properties="path/to/propertiesfile" -repr=XML|JSON 对于Java文件,其中-pro
2022-01-11 12:02:50 22KB 系统开源
1
旖美信息_抽象语法树在前端的应用.rar
2021-12-23 13:01:53 7.5MB
Architecture-driven Modernization Abstract Syntax Tree Metamodel (ASTM) V1.pdf The purpose of the ASTM is to provide a framework that allows tool vendors and tool clients to build and use tools that conform to commonly agreed upon modeling specifications for the interchange of abstract syntax models of software. Interoperability is achieved when models can be interchanged using modeling elements that conform to those specified in the ASTM specification. The internal proprietary models of tools need not conform the ASTM for a tool to be considered compliant with the ASTM. To be considered compliant a tool need only adhere to the ASTM as a model interchange specification. Tool conformance is concerned solely with the ability of tools to interchange models that conform to the ASTM. • For a GAST model to conform with the ASTM it must conform to the GAST Metamodel provided by this specification. • For a SAST model to conform to the ASTM it must conform to both the GASTM model provided with this specification as well as the SASTM model provided by some future SASTM specification. The ASTM is a bi-dimension multi-layered modeling specification. The two dimensions of the ASTM define both syntactic as well as the semantic properties of software. The layers of the ASTM define a core set of modeling elements, the GASTM, that are common to many programming languages as well as a set of extensions, the SASTMs, that extend from the core for and are used in concert with the GASTM for defining models specialized to particular programming languages. Table 2.1 illustrates the Compliance Points of the ASTM.
2021-10-13 13:54:55 8.96MB OMG 架构 语法
1
从cpp到py 该项目旨在通过创建抽象语法树(AST),使用层将C ++代码转换为Python。 该程序需要Python 3。 设置 # python3 -m pip install ply python3 -m pip uninstall -y ply # ^ "PLY is no longer maintained as pip-installable package. Although no # new features are planned, it continues to be maintained and # modernized. If you want to use the latest version, you need to check # it out from the PLY GitHub page." -<https://www.dabeaz.c
2021-10-06 21:01:49 19KB Python
1
Flora SQL解析器 将简单SQL语句解析为抽象语法树(AST),然后将其转换回SQL。 用法 为SQL语句创建AST const { Parser } = require ( 'flora-sql-parser' ) ; const parser = new Parser ( ) ; const ast = parser . parse ( 'SELECT * FROM t' ) ; console . log ( ast ) ; 将AST转换回SQL const { Parser } = require ( 'flora-sql-parser' ) ; const ast = (
2021-09-14 09:26:09 42KB parser sql ast SQLJavaScript
1
口香糖汤匙AST差异 使用Gumtree算法计算两个Spoon抽象语法树之间的AST差异。 如果使用此功能,请引用: (Jean-RémyFalleri,FloréalMorandat,Xavier Blanc,Matias Martinez,Martin Monperrus),在国际自动化软件工程会议上的发言,2014年 : 。 普通gumtreediff和gumtree-spoon-ast-diff之间的区别 gumtree-spoon-ast-diff和之间的主要区别是什么? 与普通的gumtreediff相比,gumtree-spoon-ast-diff的树经过精心设计,可为Java提供更好的AST diff。 只需比较您自己数据上的AST差异即可。 可以通过指向原始Spoon节点的指针对diff中涉及的节点进行漂亮的打印(请参见方法changedNode , commo
2021-09-01 19:57:02 1.76MB 系统开源
1
详细介绍了antlr抽象语法树的构建,搞软件工程的相关人士可参考使用
2021-05-23 17:49:03 248KB 抽象语法树
1
如何构建抽象语法树的讲解ppt,很详细。
2021-04-22 20:38:17 1.52MB 语法树
1
ASTParser抽象语法树API详细解释 比Eclipse自带的帮助文档详细一些,可以结合起来一起看
2021-03-24 11:05:55 154KB ASTParser
1