// map contains function name -> snippet id static SS parseStdFunctionsList(S snippetSrc) { ret parseStdFunctionsList(snippetSrc, new LinkedHashMap); } static SS parseStdFunctionsList(S snippetSrc, SS map) { L<S> tok = javaTok(snippetSrc); int i = findCodeTokens(tok, "standardFunctions", "=", "litlist", "("); int opening = i+6; int closing = indexOf(tok, ")", opening)-1; for (i = opening+2; i < closing; i += 4) { S[] f = unquote(tok.get(i)).split("/"); map.put(f[1], f[0]); } ret map; }
Began life as a copy of #1001994
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1003193 |
| Snippet name: | parseStdFunctionsList |
| Eternal ID of this version: | #1003193/3 |
| Text MD5: | 319bfd36d1e2c1a2ac48648b09979598 |
| Author: | stefan |
| Category: | |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-03-08 00:31:52 |
| Source code size: | 530 bytes / 16 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 893 / 870 |
| Version history: | 2 change(s) |
| Referenced in: | #1003195 - addToStdFunctionsList #1006654 - Standard functions list 2 (LIVE, continuation of #761) |