Fully Qualified Name Based Scoping #1888
Unanswered
we-wake-act21
asked this question in
Q&A
Replies: 2 comments 14 replies
-
in this case it is not pure xtext but xbase. i guess you would have to customize the linking behaviour to do the same
if a.b.c also can be local you need to figure out the shortest match path as well. |
Beta Was this translation helpful? Give feedback.
14 replies
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Team,
I’m working on building a DSL with scoping similar to Java. As a reference, I've considered the Xtext-based Xtend DSL. When I attempt to write the following code in both Xtext and my Langium-based DSL:
In the Xtext DSL,

ddd.hello2
is correctly recognized as a package:However, in my Langium DSL,

ddd.hello2
is not being parsed as a package. Instead,ddd
is being treated as a separate entity, rather than resolvingddd.hello2
as a single unit:How can I resolve this issue? Do I need to add custom logic to the parser, or is this a scoping-related problem?
For reference, below are snippets of my Langium-based and Xtext-based DSLs, which are used to resolve such expressions.
Langium DSL:
Xtext DSL:
Any insights on how to fix this would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions