What is the equivalent of pt_parse() in Spirit 2.1

I want to be able to generate ParseTree and dump it into xml like in Spirit Classic. In the Classic we call pt_parse() which return tree_parse_info and we can dump it into XML easily using tree_to_xml(). Do we have the same functionality in Spirit 2.1? Thanks HT _________________________________________________________________ Windows 7: Unclutter your desktop. http://go.microsoft.com/?linkid=9690331&ocid=PID24727::T:WLMTAGL:ON:WL:en-US:WWL_WIN_evergreen:112009

Spirit 2.1 does not have any special API functions for AST generation. It's all intrinsic. You really should look at the examples (for instance mini_xml[1-3].cpp) and read the docs (http://tinyurl.com/ojalum). The introduction there guides you nicely through how it's done. As for XML generation, we don't have this in Spirit 2.1 at all. Every parser may now generate a structurally different PT/AST, so having a common dump function is not feasible. You'll have to craft your own (the examples show how you may want to do that as well). Regards Hartmut ------------------- Meet me at BoostCon http://boostcon.com
participants (2)
-
Hartmut Kaiser
-
HT4N -