If I'm not mistaken, in the qc.cc after searching `// make when argument`
i should replace what's below with
ostringstream os;
while (lexstate.lookahead.token == '.')
{
next(&lexstate);
os << '.';
next(&lexstate);
t = lexstate.t;
if (t.token == TK_NAME) {
os << getstr(t.seminfo.ts); // Append the function name
if (lexstate.lookahead.token == '(') {
os << '('; // Append the opening parenthesis
lookahead(&lexstate);
// Parse function arguments
while (lexstate.lookahead.token != ')') {
os << lexstate.t;
lookahead(&lexstate);
}
os << ')'; // Append the closing parenthesis
lookahead(&lexstate);
}
} else {
os << t;
}
lookahead(&lexstate);
}
current_when_argument += os.str();
I'm going to test it out, and come back, but if somebody knows, you could let me know.
Thanks.