2021
DOI: 10.5815/ijisa.2021.03.05
|View full text |Cite
|
Sign up to set email alerts
|

Detection and Classification of Cross-language Code Clone Types by Filtering the Nodes of ANTLR-generated Parse Tree

Abstract: A complete and accurate cross-language clone detection tool can support software forking process that reuses the more reliable algorithms of legacy systems from one language code base to other. Cross-language clone detection also helps in building code recommendation system. This paper proposes a new technique to detect and classify cross-language clones of C and C++ programs by filtering the nodes of ANTLR-generated parse tree using a common grammar file, CPP14.g4. Parsing the input files using CPP14.g4 provi… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
1
1

Citation Types

0
1
0

Year Published

2022
2022
2024
2024

Publication Types

Select...
3
2

Relationship

0
5

Authors

Journals

citations
Cited by 5 publications
(2 citation statements)
references
References 30 publications
0
1
0
Order By: Relevance
“…The AST uses ANTLR parser to evaluate the abstract view of each document in a hierarchical fashion for different types of codes, such as Java, C#, and C++. The ANTLR 34 is an effective parser producer which can read, examine, execute, and interpret hierarchical programming codes. It is often used to build parsers that can traverse syntax trees.…”
Section: Proposed Method: Cross‐language Oss Classificationmentioning
confidence: 99%
“…The AST uses ANTLR parser to evaluate the abstract view of each document in a hierarchical fashion for different types of codes, such as Java, C#, and C++. The ANTLR 34 is an effective parser producer which can read, examine, execute, and interpret hierarchical programming codes. It is often used to build parsers that can traverse syntax trees.…”
Section: Proposed Method: Cross‐language Oss Classificationmentioning
confidence: 99%
“…The inherent dissimilarities stemming from language-specific grammatical nuances render token-based and textbased traditional approaches less effective for cross-language clone detection [24]. Recent advancements in deep learning models have demonstrated commendable performance in detecting code clones within single-language contexts [25], [26], [27]. These models exhibit a notable ability to harness the underlying structure and semantics of code fragments, facilitating the identification of code clones.…”
Section: Introductionmentioning
confidence: 99%