Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » how to install antlrWorks in xtext??
how to install antlrWorks in xtext?? [message #1724031] Fri, 19 February 2016 23:43 Go to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
how to install antlrWorks in xtext 'eclipse ' to watch the syntax tree from ANTLRWorks??
Re: how to install antlrWorks in xtext?? [message #1724038 is a reply to message #1724031] Sat, 20 February 2016 06:47 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14661
Registered: July 2009
Senior Member
Hi,

i am not sure if i can follow you. antlrWorks is a separate tool from eclipse (make sure you pick the 3,x version)
you can tell xtext to create a "pure" grammar for debug purposes as follows. (xtext 2.9.x)

		language = StandardLanguage {
			parserGenerator = {
				debugGrammar = true
			}
			name = "org.xtext.example.mydsl.MyDsl"
			fileExtensions = "mydsl"

			serializer = {
				generateStub = false
			}
			validator = {
				// composedCheck = "org.eclipse.xtext.validation.NamesAreUniqueValidator"
			}


this will produce a DebugInternalMyDsl.g you can use in antlrworks


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: how to install antlrWorks in xtext?? [message #1724124 is a reply to message #1724038] Sun, 21 February 2016 13:47 Go to previous messageGo to next message
Jan Koehnlein is currently offline Jan KoehnleinFriend
Messages: 760
Registered: July 2009
Location: Hamburg
Senior Member
There is also a railroad diagram view within Xtext Window>Show View...>Other...>Xtext>Xtext Syntax Graph.
It doesn't allow to inspect ambiguities, but OTOH it has a notation for unordered groups.


---
Get professional support from the Xtext committers at www.typefox.io
Re: how to install antlrWorks in xtext?? [message #1724152 is a reply to message #1724124] Sun, 21 February 2016 22:54 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
how i can undrestand the ambiguous i don't unrestand?? any one can give me an example , please?

[Updated on: Sun, 21 February 2016 22:57]

Report message to a moderator

Re: how to install antlrWorks in xtext?? [message #1724175 is a reply to message #1724152] Mon, 22 February 2016 06:53 Go to previous messageGo to next message
Sven Efftinge is currently offline Sven EfftingeFriend
Messages: 83
Registered: January 2016
Location: Kiel
Member

Do as Christian suggested. Enable the debug grammar and then use AntlrWorks to open the DebugInternal<MyLanguage>.g located in the src-gen folder.
Re: how to install antlrWorks in xtext?? [message #1724209 is a reply to message #1724175] Mon, 22 February 2016 10:06 Go to previous messageGo to next message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
No Message Body

[Updated on: Tue, 23 February 2016 10:12]

Report message to a moderator

Re: how to install antlrWorks in xtext?? [message #1724374 is a reply to message #1724209] Tue, 23 February 2016 12:06 Go to previous message
salha salha is currently offline salha salhaFriend
Messages: 97
Registered: February 2016
Member
No Message Body
Previous Topic:Understanding Rule Priority
Next Topic:Question related to partial parsing
Goto Forum:
  


Current Time: Fri Mar 29 14:53:06 GMT 2024

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

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

Back to the top