Using Imported Grammar Rules #532
Unanswered
ballcoach12
asked this question in
Q&A
Replies: 1 comment
-
Upon further review, this appears to be the same issue as #507. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a grammar that imports rules from another grammar. My entry rule looks like this:
The imported grammar appears to be valid, but the other grammar is showing errors in the Langium editor:
But, as you can see, the grammar is imported, and the
BehaviorDef
rule does exist and is valid:I am unsure about what is causing this error. I used the editor's Quick Fix to insert the import statement, so I think the file is accessible. Is this a bug, or am I going about this import the wrong way?
** I will also note that the error in the editor goes away if I use
BehaviorDef
as a cross-reference instead of a grammar rule in theXeta
grammar file.*** For reference, my overall goal here is to populate a global scope with
BehaviorDef
elements that are loaded from an external DSL file.Beta Was this translation helpful? Give feedback.
All reactions