tags:

views:

142

answers:

2
+2  Q: 

CIL ANTLR Grammer?

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

Thank you!

+3  A: 

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.

Bart Kiers
+1  A: 

From Antlr grammar list - Common Intermediate Language Parser by Pascal Lacroix.

cetnar