Boost logo

Boost :

From: Chris Cooney (thatdidnthurt_at_[hidden])
Date: 2003-08-26 13:08:23


Hello,

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'm wondering why the var_delm rule won't work when parsed:

rule<> var_delm = +anychar_p;
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(')');

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)

Again, sorry for the ignorance and the toy example and thanks for the effort.

Chris.



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk