!7
p {
callAnswerFunctionVerbose("Can you tell me what time it is?");
}
sclass ListConsumer {
L l;
int i;
*(L *l) {}
}
sS answer(S s) {
L tok = codeTokens(dropPunctuation(javaTok(s)));
ListConsumer c = new ListConsumer(tok);
S verb = consumeVerb(c);
if (verb != null) {
S noun = consumeNoun(c);
if (noun != null)
ret group(verb, noun, rest(c));
}
ret joinWithSpace(tok);
}