首页    期刊浏览 2024年12月04日 星期三
登录注册

文章基本信息

  • 标题:A Generic Tool for Teaching Compilers
  • 本地全文:下载
  • 作者:Riad Jabri
  • 期刊名称:Computer and Information Science
  • 印刷版ISSN:1913-8989
  • 电子版ISSN:1913-8997
  • 出版年度:2013
  • 卷号:6
  • 期号:2
  • 页码:134
  • DOI:10.5539/cis.v6n2p134
  • 出版社:Canadian Center of Science and Education
  • 摘要:

    In this paper, we propose a two-fold generic tool for compiler construction. First, it facilitates teaching compilers. Second, it constitutes a new approach for compiler construction. In addition, it enables a smooth transition from theory to practice and introduces a unified approach for the implementation of the different compiler phases. Such unification is achieved based on the representation of the compiler phases as a generic domain that is then mapped into a generic automaton. The generic automaton simulates the behavior of finite and shift-reduce automata, annotated by respective translation schemes. Thus, the tool acts as a scanner, a parser or as syntax directed translator. Without loss of generality, the proposed tool is used within a compiler-teaching framework. Comparisons with similar and well-known approaches have shown that our approach is pedagogical, conceptually simpler, requires less student efforts and more relevant to core curriculum.

国家哲学社会科学文献中心版权所有