scope wordTokC. static Map<S, LS> #cache = synchronizedMRUCache(defaultTokenizerCacheSize()); static L<S> wordTokC(S s) { LS tok = cache.get(s); if (tok == null) cache.put(s, tok = codeTokens(wordTok(s))); ret tok; } end scope
Began life as a copy of #1022226
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1023226 |
| Snippet name: | wordTokC - codeTokens of wordTok (cached) |
| Eternal ID of this version: | #1023226/4 |
| Text MD5: | 341ba7161946580c871d2c3bbc94255e |
| Author: | stefan |
| Category: | javax / tokenizing |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-05-18 13:01:55 |
| Source code size: | 245 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 491 / 541 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |