1 Sep 16:05
Re: comment_p & confix_p in spirit2
jens weller <jensweller <at> gmx.de>
2007-09-01 14:05:48 GMT
2007-09-01 14:05:48 GMT
Hartmut Kaiser wrote:
> Jens,
>
>
>>Ok. Thought that this is implemented...
>>Then, those are basicly grammars or how could I create such rules?
>>I can't wait for someone implementing this later, I have a
>>project to work on...
>>
>>Pseudocode:
>>template<Iterator>
>>struct comment_p_def : grammar_def<Iterator,<what is the
>>correct (string)type?>(?,?="\n"(is there something for
>>Lineending?)),space_type> {
>> comment_p_def()
>> {
>> start = (lit(_r1) >> *(char_ - lit(_r1) - lit(_r2)) >>
>>lit(_r2))[_val = _1 /* is this needed for storing? (afaik yes) */];
>> }
>> rule<same as in grammar_def<>> start;
>>}
>>
>>Well, really don't have a clue, how I would implement this in
>>the correct way...
>
>
> The best is probably to look at the corresponding parsers in Spirit1. These
> should be self-explanatory.
I did look at the spirit1.x code for those parsers, and in general, I
(Continue reading)
Thank you Nicola. You're DA MAN. I'll update the
website now.
Regards,
RSS Feed