GAST: A Generic AST Representation for Language-Independent Source Code Analysis

Abstract: Organizations use various programming languages to develop their systems. These aim to take advantage of the most appropriate features of each language for a given domain and require programmers to command different languages and also to face the growing complexity of software development and maintenance. So, they need tools to help them analyze programs to identify relationships between their internal elements, uncover patterns, and calculate quality metrics. However, most tools have limited support for parsing multiple programming languages and high acquisition costs. Therefore, there is a need for new methods to analyze code written in multiple programming languages. This article describes the design of a method to automatically transform the syntax of various programming languages into a universal language with a generic syntax. The function of the generic language is to encapsulate the specificities of each specific language, so that the analysis of programs is facilitated in a single programming syntax and not in multiple syntaxes. The advantage of this approach is that only one analysis engine is required, not multiple code analyzers, to study the programs.

Saved in:
Bibliographic Details
Main Authors: Leiton-Jimenez,Jason, Barboza-Artavia,Luis, Gonzalez-Torres,Antonio, Brenes-Jimenez,Pablo, Pacheco-Portuguez,Steven, Navas-Su,Jose, Hernandez-Vasquez,Marco, Solano-Cordero,Jennier, Hernandez-Castro,Franklin, Trejos-Zelaya,Ignacio, Arce-Orozco,Armando
Format: Digital revista
Language:English
Published: Universidad UTE 2023
Online Access:http://scielo.senescyt.gob.ec/scielo.php?script=sci_arttext&pid=S1390-65422023000400017
Tags: Add Tag
No Tags, Be the first to tag this record!