Using boost::spirit::qi for parsing, there\'s the possibility to use semantic actions to call functions via phoenix. The result can then be assigned to the rule\'s attribute