Skip to content
Discussion options

You must be logged in to vote

That likely requires a lot of effort, as you'd need a parser for Python/C++ and integrate it into your DSL language server.

My recommendation: declare the variable/function in your DSL and generate Python/C/C++ files declaring the variable/function in those languages (e.g. C/C++ header file). Then you can reference the symbols both in the DSL and in the target languages without the need to parse each other's code.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@open-domain
Comment options

Answer selected by msujew
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants