Skip to main content



      Home
Home » Modeling » TMF (Xtext) » Error creating Xtext artefacts(Errors with DSL)
Error creating Xtext artefacts [message #1797003] Tue, 23 October 2018 15:56 Go to next message
Eclipse UserFriend
Hello,

I made the following DSL (attached file) with Xtext. My problem is the error message. This message names a couple of unreachable options concerning the definitions of datatypes. I need all of them.

I've read a lot here in the forum. But I couldn't find the right solution.

Cheers
  • Attachment: DSL.txt
    (Size: 4.01KB, Downloaded 104 times)
Re: Error creating Xtext artefacts [message #1797290 is a reply to message #1797003] Mon, 29 October 2018 11:16 Go to previous messageGo to next message
Eclipse UserFriend
Please read the advice in this blog post:
https://blogs.itemis.com/en/debugging-xtext-grammars-what-to-do-when-your-language-is-ambiguous

In general, you are trying to do too much by terminal rules and should use datatype parser rules to avoid ambiguity of terminal symbols.
Re: Error creating Xtext artefacts [message #1797362 is a reply to message #1797290] Tue, 30 October 2018 06:22 Go to previous messageGo to next message
Eclipse UserFriend
Hello Karsten,

Thanks for your reply!

I tried to solve the problems with datarules. But I had the same problem.

Do you have an advice, which part I can cover with datarules?

Cheers
Re: Error creating Xtext artefacts [message #1797370 is a reply to message #1797362] Tue, 30 October 2018 08:00 Go to previous messageGo to next message
Eclipse UserFriend
You can combine tokens to datatype rules. See QualifiedName rule from Xtype.xtext for example.
Re: Error creating Xtext artefacts [message #1797372 is a reply to message #1797370] Tue, 30 October 2018 08:23 Go to previous message
Eclipse UserFriend
see https://blogs.itemis.com/en/xtext-hint-identifiers-conflicting-with-keywords as well
Previous Topic:Code generator conditional behaviour
Next Topic:Code Completion / Content Assist not working for second grammer
Goto Forum:
  


Current Time: Sun Jun 22 20:00:35 EDT 2025

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

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

Back to the top