Use Irony from CIL

Sep 16, 2010 at 8:14 AM

Hi!

I usually write code directly in Common Intermediate Language, and I was wondering how feasible it is to use the Irony libraries directly from CIL, to help with parsing a small DSL.

I'd be glad for any tips you may have about the same!

 

Regards,

Rudi.

Coordinator
Sep 16, 2010 at 5:06 PM

Can't imagine how you do this, directly in CIL. But I bet defining grammar in CIL would be quite a pain. Why not just use c# to define grammar class plus static Parse method that creates parser and parses the file. Then calling this method from CIL would be easy

 

Sep 16, 2010 at 5:24 PM

True - it sure sounds difficult.

I guess your idea would be a hit - simply create a DLL, and use some CIL code to call it.

Thanks :D