作者: Aarne Ranta
DOI:
关键词: Code generation 、 Programming language 、 Syntax (programming languages) 、 Parsing 、 Abstract syntax 、 Grammatical Framework 、 Computer science 、 Attribute grammar 、 Compiler 、 Theoretical computer science 、 Compiler construction
摘要: This paper presents a compiler for fragment of the C programming language, with JVM (Java Virtual Machine) as target language. The is implemented in purely declarative way: its denition consists an abstract syntax program structures and two concrete syntaxes matching syntax: one JVM. From these grammar components, derived by using GF (Grammatical Framework) grammat tool: front end parsing semantic checking accordance to grammar, back linearization grammar. tool provides other functionalities well, such decompilation interactive editing.