-
I'm wondering if with Langium I'm able to do the following:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hey @hydroperx, thanks for the question!
Langium supports fully qualified names, if that's what you mean? Even google doesn't know what three-dimensional names are supposed to be :/
You can exchange the tokenizer in Langium, but not the parser. With the way how we build the AST during the parsing phase, changes to the parser are not possible. Is that enough for your use case? I don't understand what your input goals are supposed to be.
Yes, Langium allows to lazily resolve files on the file system. By default, it will attempt to load the currently open workspace (in your IDE at least), but that behavior can be adjusted for your particular language. |
Beta Was this translation helpful? Give feedback.
I see, yeah that's essentially just a bit of scoping logic that needs to be implemented for your language. See our domainmodel example for some pointers:
langium/examples/domainmodel/example/qualified-names.dmodel
Lines 5 to 14 in 910e8a0