Last modified by Richard Kreissig on 2025/01/30 12:03

From version 7.1
edited by cds
on 2012/11/20 13:32
Change comment: There is no comment for this version
To version 12.2
edited by Richard Kreissig
on 2025/01/30 12:03
Change comment: Update document after refactoring.

Summary

Details

Page properties
Parent
... ... @@ -1,0 +1,1 @@
1 +Projects.Archive.Eclipse Practical (winter term 201213).Tutorials.WebHome
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.cds
1 +XWiki.stu230980
Content
... ... @@ -2,6 +2,8 @@
2 2  
3 3  The code generation you will implement here should not be optimized for generating the kinds of programs your transformation generates. Instead, we expect it to work for any valid program model. Further down, you will find an archive with example programs you can test your code generation on.
4 4  
5 +The slides to the presentation that accompanied this tutorial [[can be found here>>attach:presentation.pdf]].
6 +
5 5  **Contents**
6 6  
7 7  
... ... @@ -50,9 +50,9 @@
50 50  
51 51  As in the previous tutorial, add a menu contribution to the {{code language="none"}}...compiler.ui{{/code}} plug-in to make the code generation available in the interface. Since your code generation implementation is expected to work for arbitrary (valid) instances of the programming language model, your menu contribution should be available for all programming language models and their textual representations. (".imperative" and ".pseudo" files) As in the previous tutorial, your handler should create a new file in the same directory as the input file and refresh the folder afterwards to have the file show up in the project explorer.
52 52  
53 -{{note title="File Names"}}
55 +{{info title="File Names"}}
54 54  When working on your menu contribution, think about how to name the files the generated code will be stored in. If your target language is C, the file name doesn't matter much (as long as it has the .c file extension). If your target language happens to be Java, however, the file name makes quite a bit of a difference...
55 -{{/note}}
57 +{{/info}}
56 56  
57 57  == Testing Your Implementation ==
58 58  
presentation.pdf
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +418.7 KB
Content
pseudo_samples.zip
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.XWikiGuest
Size
... ... @@ -1,0 +1,1 @@
1 +1.3 KB
Content
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -3604774
1 +3604672
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/3604774/Code Generation with Xtend
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/WS12EclPract/pages/3604672/Code Generation with Xtend