Libraryless. Click here for Pure Java version (1253L/8K/28K).
!752 static new MultiMap<S, S> m; p { load("m"); } answer { L<S> tok = javaTok(s); if (match3(javaTok("* = *"), tok, m)) { main.m.put(toLower(m.unq(0)), toLower(m.unq(1))); save("m"); ret "ok"; } if (eq(get(tok, l(tok)-4), "=") && eq(get(tok, l(tok)-2), "?")) { for (int i = 1; i < l(tok)-5; i += 2) { S x = last(main.m.get(toLower(tok.get(i)))); if (x != null) tok.set(i, x); } ret join(tok.subList(0, l(tok)-5)); } }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, jtubtzbbkimh, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment