[antlr-interest] Antlr won't backtrack?
Johannes Luber
JALuber at gmx.de
Mon Feb 9 04:01:04 PST 2009
> Hi Johannes,
>
> Thanks for pointing that one out.
> I was unaware that there is another target for c#.
> What are the differences between the two?
> I couldn't find too much about it on the website..
>
> Thanks,
> Vitaliy
Basically the website describes all the differences for now. I never got around to create a real .NET 2 runtime as I planned and with the upcoming CSharp3 target I won't make this effort anymore. If your grammar works with the CSharp option, then I doubt that changing to CSharp2 breaks it.
This will be different for CSharp3 as it is created with .NETism in mind (turning setter/getters into propertes, proper casing, etc). I plan to alleviate this with adding the additional properties/method, while deprecating the old ones, so unchanged grammars will still work and users know to take the appropriate action.
Johannes
>
> -----Original Message-----
> From: Johannes Luber [mailto:jaluber at gmx.de]
> Sent: Sunday, February 08, 2009 21:11
> To: Vitaliy
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] Antlr won't backtrack?
>
> Vitaliy schrieb:
> ...
> >
> > options
> > {
> > language = CSharp;
> > backtrack=true;
> > memoize=true;
> > }
>
> One other thing: You are using the CSharp target for your grammar. As it
> will be removed in ANTLR 3.2, you should switch to the CSharp2 target,
> if you don't have to use .NET 1.1.
>
> Johannes
>
>
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 3837 (20090208) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
>
>
>
> __________ Information from ESET NOD32 Antivirus, version of virus
> signature database 3837 (20090208) __________
>
> The message was checked by ESET NOD32 Antivirus.
>
> http://www.eset.com
--
Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger01
More information about the antlr-interest
mailing list