摘要: | 模組化為頻繁於程式設計中使用的概念之一,適當使用能夠提升整體程式之可讀性、維護性與重用性。雖模組化已運用至眾多領域中,但依然有些許領域尚未使用此概念,例如程式碼轉換領域即為其中之一。在程式碼轉換領域中,主要可分為基於純文字轉換以及基於程式結構轉換兩類,而兩者皆未提供模組化的規則製作方式以及較為完善的既有規則重用方式。因此在規則製作時,難以直接由規則看出其整體涵義,也無法快速重用既有之轉換規則。為改善此問題,本研究提出ReModuRutt,以純文字轉換為基礎提供模組化之規則製作以及便利的重用既有規則功能,並提供簡單易懂之規則製作介面。經由實驗結果可得知,此工具不管在功能完整度、模組化程度以及更改難易度上皆足夠完整,能確實讓使用者得以更加善用已存在之規則,減少規則在撰寫、擴充、修改與引用上的花費時間,讓使用程式轉換工具時能夠更加簡便。;Modularization is one of the common concepts used in programming. Using modularization properly can improve the readability, maintainability and reusability of program. While modularization has been widely used in various programming fields, there are still have some fields where modularization has not been applied, for example source code transformation. Source code transformation can be mainly divided into text-based and structure-based; however, none of them either support modularization in transformation rule, or provide rule reusing methods. Therefore, when making transformation rule, it is difficult to directly see the meaning from the rule, and difficult to reuse the existing transformation rule. In order to solve this problem, we propose a text-based transformation tool called ReModuRutt, which provides modular rule making and easy-to-understand rule making interface. According to our experimental results, this tool is complete enough in terms of functional integrity, modularity, and ease of change. With this tool, users can make better use of existing rules, which can reduce the time spent on rule design, expansion, modification and reference, and make it easier to use source code transformation tools. |