1 | scope javaTokNPunctuationWithBrackets. |
2 | |
3 | static Map<S, LS> #cache = synchronizedMRUCache(1000); |
4 | |
5 | static L<S> javaTokNPunctuationWithBrackets(S s) { |
6 | LS tok = cache.get(s); |
7 | if (tok == null) cache.put(s, tok = javaTokNPunctuationWithBrackets_uncached(s)); |
8 | ret tok; |
9 | } |
10 | |
11 | static L<S> javaTokNPunctuationWithBrackets_uncached(S s) { |
12 | ret tok_combineRoundOrCurlyBrackets_keep(javaTokNPunctuation_bracketsInC(s)); |
13 | } |
14 | |
15 | end scope |
Began life as a copy of #1017442
download show line numbers debug dex old transpilations
Travelled to 9 computer(s): bhatertpkbcr, cfunsshuasjs, lnbujpyubztb, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, whxojlpjdney
No comments. add comment
Snippet ID: | #1021361 |
Snippet name: | javaTokNPunctuationWithBrackets - put words in C, punctuation + spacing in N, honor brackets |
Eternal ID of this version: | #1021361/7 |
Text MD5: | 336a552cd03611391c63df584f49f98d |
Author: | stefan |
Category: | javax / tokenizing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-02-16 21:06:51 |
Source code size: | 436 bytes / 15 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 367 / 605 |
Version history: | 6 change(s) |
Referenced in: | [show references] |