Hi,
Have you tried using the Spirit debugger?
Cheers,
--
Joel de Guzman
joel at boost-consulting.com
http://www.boost-consulting.com
http://spirit.sf.net
Surinder Pal Singh
Hi, I am trying to use Spirit (in the latest Boost 1_30_0) for a project. I want to parse a file whose structure is the following:
section1 { something; }
I am using the file_iterator to iterate on the input file and then define comment as well as the grammar. I am at my wits end why my parser keeps failing. (When this simple grammar works, I want to make the parser more complex.) My code is attached below. (Note: I used the example in the distribution c_grammar.cpp as the starting point for it.)
Thanks.
-surinder I have attempted to join the spirit mail list, but have not received the confirmation so far, but please feel free to respond to me at: sps22_at_yahoo_dot_com
PS: This input file structure is going to be, of course, more complicated than the example shown above. Inside the setions, I would like to pass on flags and statements to the code. If it is better for me to use another approach to parse this file structure, please suggest me.
[snip]