[Mono-list] C# to access libical functionality

Miguel de Icaza miguel@ximian.com
22 Apr 2003 14:16:36 -0400


Hello,

> I guess my question is what is the best way to go about it? Can I access
> the libical functionality using PInvoke?  How difficult would it be to
> wrap the whole api?  I am not much of a C programmer at all and it seems
> daunting to me to attempt to do this.

Yes, you can call libical with pinvoke.

> The other approach (and I could be way off base) that seems like it
> should be viable ( for someone with the right knowledge and experience
> in the Bison arena... this is not me) would be to generate the C# iCal
> parsing code from the grammar required by iCal/vCal.  I know that
> libical uses a yy file that is then used to generate the requisite C
> parsing code, but I am not familiar enough with these tools to know if
> this is truly a viable approach.

You can use jay to generate C# code, but the ical parser is just the tip
of the iceberg.