Multi-language static code analysis on the LARA framework


연구 분야: Strategies



학회: SOAP 2021: Proceedings of the 10th ACM SIGPLAN International Workshop on the State Of the Art in Program Analysis


초록

We propose a mechanism to raise the abstraction level of source-code analysis and robustly support multiple languages. Built on top of the LARA framework, it allows sharing language specifications between LARA source-to-source compilers, and enables the mapping of a virtual AST over the nodes of ASTs provided by different, unrelated parsers. We use this approach to create a language specification for Object-Oriented (OO) languages and add support for three different LARA compilers. We evaluate it by implementing a library of 18 software metrics using this language specification and apply the metrics to source code in four programming languages (C, C++, Java, and JavaScript). We compare the results with other tools to evaluate the approach.


Author Profile
Gil Dinis Teixeira

University of Porto Portugal

Portugal
Author Profile
João Bispo

University of Porto Portugal / INESC TEC Portugal

Portugal
Author Profile
Filipe Figueiredo Correia

University of Porto Portugal / INESC TEC Portugal

Portugal

📄 논문 정보

발행 연도 2021년
인용수 11
출판 국가 Portugal
사이트 ACM
좋아요 수 0

연관 논문 목록 (110건)