From: Joao A. <jpa...@zm...> - 2005-01-29 19:53:53
|
Hi all! I sent the mail below on the 27th, but it bounced back. Hope it gets there now ;) Regards, João ------------------------------------- Chris Woods wrote: > Joao, > > Couldn't he also replace: > > >> disp_parser >> (MOV_88.operand1, >> self.m_cpu) > > > With: > > phoenix::construct_<disp_parser>(MOV_88.operand1, self.m_cpu) > > Thereby using the lazy phoenix function to create the disp_parser at the > time of processing? The problem here is that disp_parser is a spirit parser. phoenix::construct_ returns a phoenix::actor that can be evaluated to become a spirit parser but isn't itself one. Although the set_rest actor from the Nabialek trick (http://tinyurl.com/46gzp) could be tweaked to do something like that. I guess a mix of that and the second solution I proposed on my other post would be a more general solution ;) Best regards, João |