Question

Is there any .NET CIL (AKA MSIL) ANTLR grammar?

Was it helpful?

Solution

According this publication, Microsoft provides a MSIL grammar in in the Microsoft Visual Studio installation file asmparse.grammar. If you do not have MSVS, the grammar is also listed in the publication (see page 79).

If I'm not mistaken, that grammar could pretty much just be copied and pasted in a ANTLR grammar file (ie. it's a LL grammar, not an LR one). If you're not familiar with the difference between the two, have a look at this ANTLR article.

OTHER TIPS

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top