Jan, That was my problem - thank you.
Chris. ----- Original Message ----- From: "Jan Langer" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, August 26, 2003 11:29 AM Subject: [boost] Re: Spirit question... > Chris Cooney wrote: > > I've been utilizing some of the other boost projects for awhile now but > > am new to the spirit framework and may ask some dumb questions...so, > > sorry in advance. > > i tried it today for the first time. and i think its really nice. > > > I'm wondering why the var_delm rule won't work when parsed: > > > > rule<> var_delm = +anychar_p; > > maybe > rule <> var_delm = +(anychar_p - ch_p (')')); > will work > > > rule<> var_type = str_p("some_literal") | str_p("some_literal_2") | > > var_delm ; > > rule<> script_func1 = str_p("FUNC_NAME") >> ch_p('(') >> var_type > > >>ch_p(')'); > > the var_type production also reads the closing parenthesis. > > > to clarify, > > > > FUNC_NAME(some_literal) -> parsing succeeds > > FUNC_NAME(some_literal_2) -> parsing succeeds > > FUNC_NAME(kjfd*&) -> parsing fails (note: "kjfd*&" is just a > > example...actually nothing I pass will work) > > -- > jan langer ... [EMAIL PROTECTED] > "pi ist genau drei" > > > _______________________________________________ > Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost > _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost