CHAPI (Common Hierarchical Abstract Parser and Information Converter) streamlines code analysis by converting diverse language source code into a unified abstract model, simplifying cross-language development. Chapi 是一个通用层次抽象解析器与信息转换器,它可以将不同编程语言的源代码转换为统一的层次抽象模型。
hi~ 我近几年的工作同样聚焦在代码分析,也在寻找同类型的工具,感谢开源
不过对于 chapi 同定位的产品,其实github已经把它们自己用的工具开源了,同样基于AST分析支持dump成统一格式 https://github.com/github/semantic
按我理解,这个仓库只是coca的下游,有别的现成工具来替代似乎能将有限的精力放到性价比更高的事情(如缺陷分析逻辑)上? 而且业界似乎在元数据描述这一块没有达成很明确的规范?我做过chapi类似的产品(antlr4+ast,一样的架构),但最终也纠结于此而暂停了
不知道您对此看法如何:)