講演抄録/キーワード |
講演名 |
2020-03-12 11:30
構文上の特徴の組合せによるソースコード部分の特徴付け ○中山 健(津田塾大) LOIS2019-74 |
抄録 |
(和) |
内容を把握していないソースコードから作業目的に関連する部分を探し,それを必要な範囲で理解する事は,ソフトウェア技術者の主要作業のひとつである.しかし,従来のソフトウェア統合開発環境は,ソースコードの部分(コードパターンインスタンス)と,技術者がそこから認識する意味(コードパターン)との対応付けを支援する十分な機能を提供していない.
本報告では,抽象構文木のノード組の特徴を属性値列で表し,それに対する制約で表した検索パターンがコードパターンの表現として適しているかどうかを見る.2つのコードパターンを近似的に表す検索パターンを作り,Java言語のオープンソースソフトウェア内を検索した結果は,この形式がコードパターンの近似的表現として使える事を示唆している. |
(英) |
Locating and understanding parts of source code of interest is one of the primary tasks for a software engineer especially in the maintenance phase. Conventional integrated development environment (IDE), however, does not provide sufficient capability for engineers to associate a part of source code and its semantics commonly recognized by engineers. We call such a part "code pattern instance," and the corresponding engineer-recognized semantics "code pattern."
In this paper, experience in code pattern search through an open source code is presented. Each code pattern is approximately represented as a search pattern which is a combination of syntactic attributes and constraints on them. Then, the search pattern is used to look for instances through an open source Java files. The experience shows that a search pattern of the proposed form can be a good approximation of a code pattern, but additional supporting mechanisms are necessary for practical use. |
キーワード |
(和) |
抽象構文木 / ソースコード検索 / ASTノード組 / / / / / |
(英) |
abstract syntax tree / source code search / AST node tuple / / / / / |
文献情報 |
信学技報, vol. 119, no. 477, LOIS2019-74, pp. 103-108, 2020年3月. |
資料番号 |
LOIS2019-74 |
発行日 |
2020-03-04 (LOIS) |
ISSN |
Online edition: ISSN 2432-6380 |
著作権に ついて |
技術研究報告に掲載された論文の著作権は電子情報通信学会に帰属します.(許諾番号:10GA0019/12GB0052/13GB0056/17GB0034/18GB0034) |
PDFダウンロード |
LOIS2019-74 |