Is there any .NET CIL (AKA MSIL) ANTLR grammer?
Thank you!
Is there any .NET CIL (AKA MSIL) ANTLR grammer?
Thank you!
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.
From Antlr grammar list - Common Intermediate Language Parser by Pascal Lacroix.