Search-based inference of dialect grammars

被引:6
|
作者
Di Penta, Massimiliano
Lombardi, Pierpaolo
Taneja, Kunal
Troiano, Luigi
机构
[1] Univ Sannio, Res Ctr Software Technol, I-82100 Benevento, Italy
[2] N Carolina State Univ, Raleigh, NC 27695 USA
关键词
grammar inference; genetic algorithms; source code analysis;
D O I
10.1007/s00500-007-0216-5
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Building parsers is an essential task for the development of many tools, from software maintenance tools to any kind of business-specific, programmable environment having a command-line interface. Whilst grammars for many programming languages are available, these are, very often, almost useless because of the large diffusion of dialects and variants not contemplated by standard grammars. Writing a grammar by hand is clearly feasible, however it can be a tedious and error-prone task, requiring appropriate skills not always available. Grammar inference is a possible, challenging approach for obtaining suitable grammars from program examples. However, inference from scratch poses serious scalability issues and tends to produce correct, but meaningless grammars, hard to be understood and used to build tools. This paper describes an approach, based on genetic algorithms, for evolving existing grammars towards target (dialect) grammars, inferring changes from examples written using the dialect. Results obtained experimenting the inference of C dialect rules show that the algorithm is able to successfully evolve the grammar. Inspections indicated that the changes automatically made to the grammar during its evolution preserved its meaningfulness, and were comparable to what a developer could have done by hand.
引用
收藏
页码:51 / 66
页数:16
相关论文
共 50 条
  • [21] SEARCH-BASED IMPORTANCE SAMPLING
    MELCHERS, RE
    STRUCTURAL SAFETY, 1990, 9 (02) : 117 - 128
  • [22] Search-based software maintenance
    O'Keeffe, Mark
    Cinneide, Mel O.
    10TH EUROPEAN CONFERENCE ON SOFTWARE MAINTENANCE AND REENGINEERING, PROCEEDINGS, 2006, : 247 - +
  • [23] Using attribute grammars for description of inductive inference search space
    Sarkans, U
    Barzdins, J
    ALGORITHMIC LEARNING THEORY, 1998, 1501 : 400 - 408
  • [24] Search downward: Minimal Search-based Agree
    Ke, Alan Hezao
    GLOSSA-A JOURNAL OF GENERAL LINGUISTICS, 2023, 8 (01):
  • [25] RSFIN: A Rule Search-based Fuzzy Inference Network for performance prediction of configurable software systems
    Li, Yufei
    Bao, Liang
    Huang, Kaipeng
    Wu, Chase
    Li, Xinwei
    JOURNAL OF SYSTEMS AND SOFTWARE, 2024, 209
  • [26] Search-Based Requirements Traceability Recovery
    Ghannem, Adnane
    Hamdi, Mohammed Salah
    Kessentini, Marouane
    Ammar, Hany H.
    PROCEEDINGS OF SAI INTELLIGENT SYSTEMS CONFERENCE (INTELLISYS) 2016, VOL 1, 2018, 15 : 156 - 171
  • [27] EXSYST: Search-Based GUI Testing
    Gross, Florian
    Fraser, Gordon
    Zeller, Andreas
    2012 34TH INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE), 2012, : 1423 - 1426
  • [28] Search-based refactoring: an empirical study
    O'Keeffe, Mark
    Cinneide, Mel O.
    JOURNAL OF SOFTWARE MAINTENANCE AND EVOLUTION-RESEARCH AND PRACTICE, 2008, 20 (05): : 345 - 364
  • [29] Robustness in Search-Based Software Remodularization
    Amarjeet
    Chhabra, Jitender Kumar
    2017 INTERNATIONAL CONFERENCE ON INFOCOM TECHNOLOGIES AND UNMANNED SYSTEMS (TRENDS AND FUTURE DIRECTIONS) (ICTUS), 2017, : 611 - 615
  • [30] A framework for learning in search-based systems
    Sarkar, S
    Chakrabarti, PP
    Ghose, S
    IEEE TRANSACTIONS ON KNOWLEDGE AND DATA ENGINEERING, 1998, 10 (04) : 563 - 575