[antlr-interest] ANTLR3 C target and Visual Studio 6

Jim Idle jimi at temporal-wave.com
Thu Oct 4 11:13:55 PDT 2007


I will add this to the source :-) Thanks for the feedback.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Iain Young
> Sent: Thursday, October 04, 2007 2:02 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] ANTLR3 C target and Visual Studio 6
> 
> Hi folks,
> 
> I've just been creating some parsers using Antlr3 and the c target. It
> all worked fine with vs2005, but would not compile with vc6. After a
> bit
> of investigation I found I had to make a small change to one of the
> antlr header files.
> 
> In the file antlr3defs.h, I had to change the line (110):
> 
>         #define	ANTLR3_UINT64_LIT(lit)	    lit##ULL
> 
> So that it instead looked like this...
> 
>         #if _MSC_VER >= 1400
>         #define  ANTLR3_UINT64_LIT(lit)     lit##ULL
>         #else
>         #define  ANTLR3_UINT64_LIT(lit)     lit##ui64
>         #endif // _MSC_VER >= 1400
> 
> Now that I've modified the antlr sources, I guess this change ought to
> make it into the official source stream as a patch of some sort, but I
> can't see any information on the antlr website on how to do this,
> (although I might be missing it - it's early and I haven't had enough
> coffee yet). Does anyone know what I need to do with this fix?
> 
> Thanks,
> Iain
> 
> Micro Focus Limited is registered in England and Wales. Registered
> number: 01504593
> Registered office: The Lawn, 22-30 Old Bath Road Newbury, Berkshire,
> RG14 1QN, UK
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date:
> 10/3/2007 8:22 PM
> 

No virus found in this outgoing message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.0/1048 - Release Date: 10/3/2007
8:22 PM
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20071004/5b5d5e81/attachment-0001.html 


More information about the antlr-interest mailing list