Skip to content

How to generate code for my DSL? #900

Answered by msujew
luiz290788 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @luiz290788,

Langium comes with a templating library out of the box. You can see it's usage in the statemachine example generator. It's main entry points are the expandToNode and toString functions exported from Langium. It's used to print human-readable, correctly indented code. It's relatively new and we are currently in the process of writing documentation and adding tracing support.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luiz290788
Comment options

Answer selected by luiz290788
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