首页    期刊浏览 2025年05月02日 星期五
登录注册

文章基本信息

  • 标题:The METAFRONT System: Extensible Parsing and Transformation
  • 本地全文:下载
  • 作者:Claus Brabrand ; Michael I. Schwartzbach ; Mads Vanggaard
  • 期刊名称:BRICS Report Series
  • 印刷版ISSN:0909-0878
  • 出版年度:2003
  • 卷号:10
  • 期号:7
  • 出版社:Aarhus University
  • 摘要:We present the metafront tool for specifying flexible, safe, and efficient syntactic transformations between languages defined by context-free grammars. The transformations are guaranteed to terminate and to map grammatically legal input to grammatically legal output. We rely on a novel parser algorithm that is designed to support gradual extensions of a grammar by allowing productions to remain in a natural style and by statically reporting ambiguities and errors in terms of individual productions as they are being added. Our tool may be used as a parser generator in which the resulting parser automatically supports a flexible, safe, and efficient macro processor, or as an extensible lightweight compiler generator for domain-specific languages. We show substantial examples of both kinds.
国家哲学社会科学文献中心版权所有