• DocumentCode
    753097
  • Title

    Learning context-free grammar rules from a set of program

  • Author

    Dubey, A. ; Jalote, P. ; Aggarwal, S.K.

  • Author_Institution
    Philips Res. Asia, Bangalore
  • Volume
    2
  • Issue
    3
  • fYear
    2008
  • fDate
    6/1/2008 12:00:00 AM
  • Firstpage
    223
  • Lastpage
    240
  • Abstract
    The grammar of a programming language is important because it is used in developing program analysis and modification tools. Sometimes programs are written in dialects-minor variations of standard languages. Normally, grammars of standard languages are available but grammars of dialects may not be available. A technique for reverse engineering context-free grammar rules is presented. The proposed technique infers rules from a given set of programs and an approximate grammar is generated using an iterative approach with backtracking. The correctness of the approach, is explained and a set of optimisations proposed to make the approach more efficient. The approach and the optimisations are experimentally verified on a set of programming languages.
  • Keywords
    context-free grammars; learning (artificial intelligence); optimisation; program diagnostics; reverse engineering; backtracking; context-free grammar rules; dialects; iterative approach; optimisation; program analysis; programming language; reverse engineering;
  • fLanguage
    English
  • Journal_Title
    Software, IET
  • Publisher
    iet
  • ISSN
    1751-8806
  • Type

    jour

  • DOI
    10.1049/iet-sen:20070061
  • Filename
    4543987