// When talking to a bot, the need to remember its precise syntax // is a little annoying. Let's change that. !747 m { static S botID; // its program ID static L questions; p { S program = loadSnippet(botID); questions = findQuestionsInSource(program); } static L findQuestionsInSource(S src) { L tok = javaTok(src); new L questions; for (int i = 1; i+4 < tok.size(); i += 2) { if (tok.get(i).equals("match3") && tok.get(i+2).equals("(") && isQuoted(tok.get(i+4))) { questions.add(unquote(tok.get(i+4))); } } return questions; } }