[antlr-interest] [C target] [3.1] Cast to ASTLabelType missing in Treeparser template

Jim Idle jimi at temporal-wave.com
Mon Aug 25 08:21:54 PDT 2008


On Mon, 2008-08-25 at 14:41 +0200, Sven Van Echelpoel wrote:

> Hi,
> 
> When compiling a tree parser generated for the C target, the compiler
> complains about an illegal conversion from void* when it is compiled as
> a C++ source. 
> 
> ruleCleanUp() ::= <<
> <super.ruleCleanUp(...)>
> <if(backtracking)>
> if ( BACKTRACKING==0 ) {<\n>
> <endif>
> <if(!ruleDescriptor.isSynPred)>
> 	retval.stop = LT(-1);<\n>
> <endif>
>         retval.tree = ADAPTOR->rulePostProcessing(ADAPTOR, root_0);
>                     ^^^^^^^^^^^
>                     (Cast Missing here?)
> [...]
> 

Yes, that looks likely - I will check and implement - thanks.

Jim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080825/247f1a8b/attachment.html 


More information about the antlr-interest mailing list