Skip to content
Discussion options

You must be logged in to vote

Hi @RuanVanRooyenDSA , thanks for the question! Sounds like you're talking about eval-langium example, which does focus on evaluating generated grammars. However the same approach will work for evaluating program output that corresponds to your DSL as well. It just happens to be that in that example the program that we're parsing is a generated Langium grammar, since Langium parses itself.

For any other Langium DSL, you can extend the base evaluator class with one that invokes the services for your DSL instead (building a document & invoking validation on it). It's very thin by design, so you can determine how you want to do that for your language. For reference, you can see how the langi…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@RuanVanRooyenDSA
Comment options

@montymxb
Comment options

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