![]() We give various examples of Thorn-based code generators. We describe an approach to code generation based on Thorn, and compare the approach to other known code generation methods. When the compiler needs to execute a command, it launches a corresponding program, passes data from the document to the program, and uses an output value of the program as the result of the command. The original model of translation associates commands inside a Thorn document with programs written in some script language. Instead of defining both language syntax and semantics for each case, the same general-purposed markup language Thorn is used. 51 Email: paper presents a new approach to domain-specific languages creation. ![]() ![]() Ural State University Yekaterinburg, Lenina str. Thom language: a flexible tool for code generation
0 Comments
Leave a Reply. |