论文标题

模块化和教学编译器设计,具有XML间相互通信

Modular and Didactic Compiler Design with XML Inter-Phases Communication

论文作者

Navas-López, Eduardo Adam

论文摘要

在编译器设计课程中,学生学习了如何通过不同的表示,将机器理解的低级汇编语言系统地转换为低级编写语言的程序,并通过不同的表示。本文介绍了一个模块化和教学编译器的设计,教育特征和可能性,用于类似帕斯卡的编程迷你语言,这是Niklaus Wirth的PL/0的超级集合。主要特征是它以这样的方式实现了编译阶段,即传递给每个下一个的信息可以反映为XML文档,可以单独研究。还显示其设计适合被包括在编译器设计课程中。可以用像Python这样的高级语言实现编译器。

In Compiler Design courses, students learn how a program written in high level programming language and designed for humans understanding is systematically converted into low level assembly language understood by machines, through different representations. This article presents the design, educative characteristics and possibilities of a modular and didactic compiler for a Pascal-like programming mini-language that is super-set of Niklaus Wirth's PL/0. The main feature is that it implements the compiling phases in such a way that the information delivered to each next one may be reflected as an XML document, which can be studied separately. It is also shown that its design is suitable for being included as learning tool into compiler design courses. It is possible to implement a compiler in a high-level language like Python.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源