langium icon indicating copy to clipboard operation
langium copied to clipboard

Adds Monarch Grammar File Generation

Open montymxb opened this issue 2 years ago • 2 comments

Closes #582 by adding an option to generate a Monarch grammar file. This supplements our existing generation for TextMate grammar files, so we can generate one, both, or neither of them as we choose.

As an example I've updated the statemachine example's langium-config to construct a Monarch grammar, and I've added the resulting file.

Currently I've been comparing the results by using Microsoft's Monarch Editor (playground), and it looks good.

The shows is marked as having quite a few errors in VSCode but the format should be ok when used in a Monaco instance. I haven't tried setting this up directly, but that would be the next step.

montymxb avatar Aug 05 '22 14:08 montymxb

Thanks for the feedback @msujew . Next commit of changes should be up sometime later tomorrow.

montymxb avatar Aug 08 '22 07:08 montymxb

New changes are up 👍

montymxb avatar Aug 10 '22 09:08 montymxb

Last review points added in.

montymxb avatar Aug 31 '22 08:08 montymxb