[antlr-interest] to Parse C# 2.0

Micheal J open.zone at virgin.net
Tue May 30 06:48:20 PDT 2006


Hi,

> I'm new to Antlr.
> I wanna ask you if i try,i can generate code to parse c#2.0 
> with antlr?

Yes.

> or Is there some problem to do that? Now I'm 
> trying to use Kcsparse.

KCSParse (or the csharp_v1 C# sample included with ANTLR) is a good starting
point since it already parses most[*] C# v1 programs correctly.

If you do manage to extend KCSParse/csharp_v1 to parse C# 2.0, please
consider contributing your changes back to us (or just upload it to the
ANTLR site).


Cheers

Micheal


[*]   KSCParse/csharp_v1 cannot parse some uses of #if/elif/else/endif and
some uses of #region/endregion.



More information about the antlr-interest mailing list