I'd like to use a factory function in a semantic action, but I haven't been able to find the right recipe using phoenix or fusion.
My spirit-qi rule that would look something like:
object = type_identifier >> arg_list;
and I'd like to have Fusion perform something like:
object = Factory(type_identifier)(arg_list)
instead of using BOOST_FUSION_ADAPT_STRUCT
to create a structure containing type_identifier
and arg_list
.
How can something like this be done? Thanks.