Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Convert xtext code to JavaScript
Convert xtext code to JavaScript [message #1737328] Thu, 07 July 2016 06:53 Go to next message
Eclipse UserFriend
Hi,
I have xtext code (like Java, I used xbase) and I want to translate it to JavaScript. Which is the easiest way?
I'm already generated java code.
Is it easier to create JavaScript code directly from xtext code or from already existing Java code?

Thank you.
Re: Convert xtext code to JavaScript [message #1737329 is a reply to message #1737328] Thu, 07 July 2016 06:55 Go to previous messageGo to next message
Eclipse UserFriend
since there is no out of the box solution i think translating the java code to js would be easier if there is a tool that does this.
Re: Convert xtext code to JavaScript [message #1737330 is a reply to message #1737329] Thu, 07 July 2016 06:56 Go to previous messageGo to next message
Eclipse UserFriend
p.s.: what is the reason to go to java script?
Re: Convert xtext code to JavaScript [message #1737456 is a reply to message #1737330] Fri, 08 July 2016 07:57 Go to previous messageGo to next message
Eclipse UserFriend
Thank you Christian,

The idea is to my DSL runs on various platforms.. Java, JavaScript.. I will try with GWT.
Re: Convert xtext code to JavaScript [message #1737457 is a reply to message #1737456] Fri, 08 July 2016 08:10 Go to previous messageGo to next message
Eclipse UserFriend
Sounds more like a use case for xtext web support
Re: Convert xtext code to JavaScript [message #1737459 is a reply to message #1737457] Fri, 08 July 2016 08:31 Go to previous messageGo to next message
Eclipse UserFriend
I understood that it is only the Web editor for writing DSL? I want to convert my DSL to JavaScript. My DSL is java like.
Re: Convert xtext code to JavaScript [message #1737462 is a reply to message #1737459] Fri, 08 July 2016 08:39 Go to previous messageGo to next message
Eclipse UserFriend
Marko Markovic <forums-noreply@xxxxxxxx> wrote:
> I understood that it is only the Web editor for writing DSL? I want to
> convert my DSL to JavaScript. My DSL is java like.
>

I guess this won't work
Re: Convert xtext code to JavaScript [message #1737463 is a reply to message #1737459] Fri, 08 July 2016 08:41 Go to previous message
Eclipse UserFriend
Marko Markovic <forums-noreply@xxxxxxxx> wrote:
> I understood that it is only the Web editor for writing DSL? I want to
> convert my DSL to JavaScript. My DSL is java like.
>

Depending on what you do in yourdsl it may work. Make sure you use the gwt
version of xbase
Previous Topic:Cyclic linking detected when building in maven
Next Topic:Best Solution for when ISemanticModification quickfix results in an InvalidConcreteSyntaxException
Goto Forum:
  


Current Time: Mon Jul 14 06:02:04 EDT 2025

Powered by FUDForum. Page generated in 0.04502 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top