Embed typescript fragments inside your dsl #962
Unanswered
nadavhames
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hey @nadavhames, what this effectively requires are two parts:
I think this should be doable, though the second part requires a lot of intervention on pretty much all LSP services. |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @nadavhames, may I know what business your DSL is designed for? because I am planning to build an in-house DSL but I found that your DSL's grammar is very similar with the thing in my mind. |
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.
-
Here is the rough idea: It would be quite cool if it were possible to specify inside your grammar that part of a rule can be a valid typescript expression/function/value/etc. That way, you could make DSLs that intermix your custom grammar and TS fragments:
compute
is a typescript function with arguments being the dependencies we have added to ourthing
and the return type is thetype
we have specified in our thing.Beta Was this translation helpful? Give feedback.
All reactions