[antlr-interest] Action body losing literal in translation?
Dejas Ninethousand
dejas9000 at gmail.com
Fri Jul 15 11:47:10 PDT 2011
Hi,
I have a production that looks like this:
subtree : descendant_list network_info { stack.pushSubtree(true); }
| network_info { stack.pushSubtree(false); };
but when I examine the generate java code the boolean literals seem to be
missing. Any thoughts on why?
case 1 :
// C:\\Users\\Matt\\Desktop\\ExtendedNewick.g:22:11:
descendant_list network_info
{
pushFollow(FOLLOW_descendant_list_in_subtree74);
descendant_list();
state._fsp--;
pushFollow(FOLLOW_network_info_in_subtree76);
network_info();
state._fsp--;
* stack.pushSubtree(); *
}
break;
case 2 :
// C:\\Users\\Matt\\Desktop\\ExtendedNewick.g:23:11:
network_info
{
pushFollow(FOLLOW_network_info_in_subtree90);
network_info();
state._fsp--;
* stack.pushSubtree(); *
}
break;
}
More information about the antlr-interest
mailing list