首页 | 本学科首页   官方微博 | 高级检索  
     


Agile Parsing in TXL
Authors:Thomas R Dean  James R Cordy  Andrew J Malton  Kevin A Schneider
Affiliation:(1) Queen's University, Kingston, Canada;(2) University of Waterloo, Waterloo, Canada;(3) University of Saskatchewan, Saskatoon, Canada
Abstract:Syntactic analysis forms a foundation of many source analysis and reverse engineering tools. However, a single standard grammar is not always appropriate for all source analysis and manipulation tasks. Small custom modifications to the grammar can make the programs used to implement these tasks simpler, clearer and more efficient. This leads to a new paradigm for programming these tools: agile parsing. In agile parsing the effective grammar used by a particular tool is a combination of two parts: the standard base grammar for the input language, and a set of explicit grammar overrides that modify the parse to support the task at hand. This paper introduces the basic techniques of agile parsing in TXL and discusses several industry proven techniques for exploiting agile parsing in software source analysis and transformation.
Keywords:agile parsing  parsing  grammars  grammar adaptation  source transformation  program comprehension
本文献已被 SpringerLink 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号