hi,
this looks like a bug to me, but i can't make out what's wrong:
Parser.C.split(""fo,o",bar,ga,zo\"ng");
Start must not be greater than the length of the string. Unknown program: search(""fo,o",bar,ga,zo\"ng\n\0",""",23) /usr/local/pike/7.6.7/lib/modules/Parser.pmod/C.pmod:232: Parser.C->split(""fo,o",bar,ga,zo\"ng\n\0",0)
it does not seem to be within that block where the error occurs, but rather somewhere before something must be setting pos to a value that's to high.
greetings, martin.
Does it work with the C-version of the code? We should probably start using that, btw, and I should finish the C-equivalent of Parser.Pike.split.
Oh, that's right. I was working on integrating the C-implemented C- and Pike-parsers, but I have a faint memory that something went really bananas...
On Fri, Mar 04, 2005 at 02:15:01PM +0100, Per Hedbor () @ Pike (-) developers forum wrote:
Does it work with the C-version of the code?
do you mean the pike version?
that gives a more sensible error:
Parser.Pike.split(""fo,o",bar,ga,zo\"ng,foo");
Unknown pike token: "\"ng,foo\n\0" /usr/local/pike/7.6.7/lib/modules/Parser.pmod/Pike.pmod:243: Parser.Pike->split(""fo,o",bar,ga,zo\"ng,foo\n\0",0)
if i correct the "code", ie with ""fo,o",bar,ga,"zo\"ng",foo" it works of course.
greetings, martin.
pike-devel@lists.lysator.liu.se