Rewriting JGrafchart with Rewritable Reference Attribute Grammars

Alfred Theorin, Karl-Erik Årzén, Charlotta Johnsson · 2012

Abstract. Grafchart is a graphical programming language for sequen-tial control applications. It exists in two versions: the basic version (BV) and the high-level version (HLV). The currently used Grafchart tool, JGrafchart, only supports BV. To enable further research on HLV, it must be supported by JGrafchart. Since HLV is a superset of BV it is desirable to add it as an extension to the current implementation of BV. Rewritable Reference Attribute Grammars (ReRAGs) have been suc-cessfully used to implement several other extensible compilers. Grafchart consists of one graphical and two textual sub-languages. This paper fo-cuses on making the two textual sub-languages extensible by rewriting them using ReRAGs. The sup notation is added as an extension to the ReRAGs implementation to confirm extensibility. 1

Read the paper · More papers on PaperTik