How can I reuse or override generateTerminalConstants
to add custom generated texts?
#1962
Unanswered
Shulabh-Prakash
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Hey @Shulabh-Prakash, The generator package is closed down and it's not possible to change the generator in adopter/user code (at least right now). We wouldn't want to expose any API to change generated code, as this can quickly lead to unexplainable runtime errors that would be incredibly difficult to debug. We might add API though to allow to generate more code. See also the discussion in #818. What is your specific use case for this? Can you give an example on what you want to change? |
Beta Was this translation helpful? Give feedback.
2 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.
-
I want to modify the behavior of the
generateTerminalConstants
function fromlangium-cli
.I see that the function is located in
langium-cli
and used internally ingenerateAst
. Since this is part of anode_module
, I'm unsure of the best way to reuse or extend it without directly modifying the package. Is there any way that I am unaware of?Beta Was this translation helpful? Give feedback.
All reactions