|
Boost Users : |
From: elviin (elviin_at_[hidden])
Date: 2006-01-02 10:04:03
Hello Boost users.
I'd like to know if anyone was solving the following problem.
I tried to use comment_p("//") in this way:
rule_t r =
*(anychar_p-comment_p("//"))
%
comment_p("//")[push_back_a(v)]
;
This works for me except this case:
C++ code:
<snip>
else if (szMethodName == "the test //") open(tCallParams, tAction);
<snip>
Problem is caused by the string "the test //". Then the source is
parsed in the wrong way because
//") open(tCallParams, tAction);
is assumed as comment.
I think I should select an allowed segment where // is valid.
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