Boost logo

Boost Users :

From: Joel de Guzman (joel_at_[hidden])
Date: 2005-02-27 21:32:30


chrono232_at_[hidden] wrote:
> Can anyone explain to me what is wrong with the following:
>
> ----------------
>
> my_grammer g; // a grammar, the actual grammar I'm using is too long
> for me to post
> file_iterator first<char>( "somefile.txt")
> file_iterator last<char> = first.make_end();
> rule_t<> skp = space_p | comment_p("//") | comment_p("/*","*/");
> parse_info< file_iterator<char> > = parse( first, last, *g, skp );

Hi!

See the FAQ "Scanner Business".

Anyway, the proper forum for Spirit related questions is:
Spirit-general mailing list
Spirit-general_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/spirit-general

Cheers,

-- 
Joel de Guzman
http://www.boost-consulting.com
http://spirit.sf.net

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net