Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » DSL Generate Documentation
DSL Generate Documentation [message #1803063] Thu, 21 February 2019 15:31 Go to next message
Noslen Acesnof is currently offline Noslen AcesnofFriend
Messages: 23
Registered: February 2019
Junior Member
Hello.

I'm building a DSL and I'm wondering if with Xtext or Xtend we can generate documentation of the DSL, as javadoc does with java programs.
Re: DSL Generate Documentation [message #1803136 is a reply to message #1803063] Sat, 23 February 2019 07:55 Go to previous messageGo to next message
Uli Merkel is currently offline Uli MerkelFriend
Messages: 250
Registered: June 2013
Senior Member
It seems just like a matter to extend your Generator.

You can use the AST
to generate an additional file
with all documentation you like.
Re: DSL Generate Documentation [message #1803191 is a reply to message #1803136] Mon, 25 February 2019 08:11 Go to previous messageGo to next message
Noslen Acesnof is currently offline Noslen AcesnofFriend
Messages: 23
Registered: February 2019
Junior Member
Thanks, I will try, but I'm kinda new at creating DSLs, do you have any tip how I to do that?
Re: DSL Generate Documentation [message #1803206 is a reply to message #1803191] Mon, 25 February 2019 10:21 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
please have a look at the generator tutorial https://www.eclipse.org/Xtext/documentation/103_domainmodelnextsteps.html
instead of java files simply generate .txt .html .md or whatever textformat you wish


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: DSL Generate Documentation [message #1803217 is a reply to message #1803206] Mon, 25 February 2019 11:57 Go to previous messageGo to next message
Noslen Acesnof is currently offline Noslen AcesnofFriend
Messages: 23
Registered: February 2019
Junior Member
Christian Dietrich wrote on Mon, 25 February 2019 10:21
please have a look at the generator tutorial https://www.eclipse.org/Xtext/documentation/103_domainmodelnextsteps.html
instead of java files simply generate .txt .html .md or whatever textformat you wish



I think that I was miss understood. What I meant to say is that I have a DSL totally built, but now I want to generate documentation automatically for it. But like Uli MerkelFriend, I can't do that without creating a generator for documentation too, right?

[Updated on: Mon, 25 February 2019 11:58]

Report message to a moderator

Re: DSL Generate Documentation [message #1803222 is a reply to message #1803217] Mon, 25 February 2019 12:40 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Please explain. What exactly do you want to document ? The grammar ?

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: DSL Generate Documentation [message #1803226 is a reply to message #1803222] Mon, 25 February 2019 12:58 Go to previous messageGo to next message
Noslen Acesnof is currently offline Noslen AcesnofFriend
Messages: 23
Registered: February 2019
Junior Member
Yes, I want to document the grammar.
Re: DSL Generate Documentation [message #1803228 is a reply to message #1803226] Mon, 25 February 2019 13:14 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
There is nothing

You can write a own grammar fragment and add it to the workflow

Or you manually use the Xtext syntax view and create something out of it


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: DSL Generate Documentation [message #1803230 is a reply to message #1803228] Mon, 25 February 2019 13:29 Go to previous message
Noslen Acesnof is currently offline Noslen AcesnofFriend
Messages: 23
Registered: February 2019
Junior Member
I didn't know about Xtext syntax view, thanks :D
Previous Topic:Code completion in VSCode
Next Topic:How to get the list of classes for scope
Goto Forum:
  


Current Time: Sat Apr 20 00:28:52 GMT 2024

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

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

Back to the top