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 条
  • [31] Scalable search-based image annotation
    Wang, Changhu
    Jing, Feng
    Zhang, Lei
    Zhang, Hong-Jiang
    MULTIMEDIA SYSTEMS, 2008, 14 (04) : 205 - 220
  • [32] Scalable search-based image annotation
    Changhu Wang
    Feng Jing
    Lei Zhang
    Hong-Jiang Zhang
    Multimedia Systems, 2008, 14 : 205 - 220
  • [33] Search-based testing in membrane computing
    Turlea, Ana
    Gheorghe, Marian
    Ipate, Florentin
    Konur, Savas
    JOURNAL OF MEMBRANE COMPUTING, 2019, 1 (04) : 241 - 250
  • [34] Search-based opening book construction
    Fishburn, John P.
    ICGA JOURNAL, 2018, 40 (01) : 2 - 14
  • [35] Search-based Testing using EFSMs
    Turlea, Ana
    2019 IEEE 30TH INTERNATIONAL SYMPOSIUM ON SOFTWARE RELIABILITY ENGINEERING WORKSHOPS (ISSREW 2019), 2019, : 100 - 103
  • [36] SEARCH-BASED EVOLUTION OF XML SCHEMAS
    Teodoro Silva, Julio Cesar
    Ramirez Pozo, Aurora Trinidad
    Vergilio, Silvia Regina
    Musicante, Martin A.
    COMPUTING AND INFORMATICS, 2012, 31 (03) : 573 - 595
  • [37] Search-Based Energy Testing of Android
    Jabbarvand, Reyhaneh
    Lin, Jun-Wei
    Malek, Sam
    2019 IEEE/ACM 41ST INTERNATIONAL CONFERENCE ON SOFTWARE ENGINEERING (ICSE 2019), 2019, : 1119 - 1130
  • [38] Search-based model transformation by example
    Kessentini, Marouane
    Sahraoui, Houari
    Boukadoum, Mounir
    Ben Omar, Omar
    SOFTWARE AND SYSTEMS MODELING, 2012, 11 (02): : 209 - 226
  • [39] SPoC: Search-based Pseudocode to Code
    Kulal, Sumith
    Pasupat, Panupong
    Chandra, Kartik
    Lee, Mina
    Padon, Oded
    Aiken, Alex
    Liang, Percy
    ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 32 (NIPS 2019), 2019, 32
  • [40] ConceptRank for search-based image annotation
    Petra Budikova
    Michal Batko
    Pavel Zezula
    Multimedia Tools and Applications, 2018, 77 : 8847 - 8882