|
Re: Generating c code with xtext [message #1266519 is a reply to message #1266423] |
Fri, 07 March 2014 15:12 |
|
Hi I am not sure if I get your question.
I assume you don't use xbase.
Generating code is generating text. So it does not matter if you
generate a test.java or a test.c or a test.h file or whether these
files contain java or c or something else
Did you do the Xtext tutorials from the docs generating code? If you
need specific help you should at least share your grammar.
Regards Christian
--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Re: Generating c code with xtext [message #1266735 is a reply to message #1266519] |
Fri, 07 March 2014 22:26 |
Antonis P. Messages: 4 Registered: March 2014 |
Junior Member |
|
|
Thanks.
Lets say that I want to generate text A;B;C in my example, which is independent of the original dsl code a;b;c
And I want to generate just one file (not many as in one example I have seen).
To do it more concrete lets say that I want to always generate the following peace of code
(*independent of what the dsl user have writen.)
#include <stdio.h>
int main() {
return 0;
}
How can I do it? If I knew that, I beleive that I could make a start.
Thanks a lot
Antonis.
[Updated on: Fri, 07 March 2014 22:29] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03129 seconds