[antlr-interest] Fixed! 3.1b1 trouble with a CSharp2/AST example

Hamilton Link helink at sandia.gov
Wed Jun 4 12:14:55 PDT 2008


Johannes Luber wrote:
>> Rebuilding the runtime seems to have resolved the problem I was having
>> (that is, with AST generation throwing an error on the polynomial example from
>> the web site).  So, I can only guess that the .net runtime assemblies
>> distributed with 3.1b1 were slightly stale.
>>
>>
>> To get Antlr 3.1b1 building under Visual Studio Pro 2008,
>>
>> - you need to add UnwantedTokenException.cs and MissingTokenException.cs
>> to
>>
>> the "Antlr.Runtime" directory of the Antlr3.Runtime project (they are in
>>
>> the associated directory)
>>
>> - you need to add CommonErrorNode.cs to the "Antlr.Runtime.Tree" directory
>>
>> in the same project.
>>
>> It should then build fine with no further modifications. Building under VS
>>
>> will produce .dll and .pdb files in
>>
>> antlr-3.1b1\runtime\CSharp\Sources\Antlr3.Runtime\obj\Debug
>>
>> and similar directories for the other libraries.  Using these instead of
>> the 3.1b1-distributed assemblies fixed the errors I was getting.
>>
>>
>>
>> thanks,
>>
>> hamilton
>>     
>
> Which project file are you using? The VS 2005 should already include all required files, otherwise I have to update the file on the repo. The one for 2003 is outdated, but I don't have VS 2003 anymore so I'll have to use something like Prebuild later. That the newly generated files don't map to the included files has to reasons. The first is that Perforce requires a checkout before you can overwrite a file, even if you don't want to check in the files later. The second is that the runtime assemblies will be distributed in a separate file, so changing things is somewhat useless.
>
> Johannes
>
> Johannes
> --
> GMX startet ShortView.de. Hier findest Du Leute mit Deinen Interessen!
> Jetzt dabei sein: http://www.shortview.de/?mc=sv_ext_mf@gmx
>
>   

Erm... I may have been using the 2003 version of things.  Yeah, it looks 
like I opened the 2003 .sln file for conversion rather than the 2005 
solution.

h





More information about the antlr-interest mailing list