Hi,

I'm doing a university project which involves converting an existing parser written using flex/bison to the Spirit parser framework. In bison, you can have a rule like so (where myrule is specified to have a certain type):

Code:
myrule:
	blah {$$=$1;}
;
AFAIK, the above "returns" whatever blah is (as in if you used myrule in another rule, you'd essentially "get" blah). I'm just not sure how to copy this behaviour with Spirit. The only thing that I can think of doing is generating a parse tree, and using an access_node_d in the grammar rule to insert an object as the value member of the created tree node as the tree is being generated. Maybe that's an ok way to do it?

Anyhow, sorry for the bad description and thanks in advance.

ac