Is there any .NET CIL (AKA MSIL) ANTLR grammar?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.