1 | static Set<S> mapLike tok_allGroups_recursive(O tokenizer, S s) { |
2 | new Set<S> set; |
3 | tok_allGroups_recursive_collect(tokenizer, s, set); |
4 | ret set; |
5 | } |
6 | |
7 | svoid tok_allGroups_recursive_collect(O tokenizer, S s, Set<S> set) { |
8 | if (empty(s)) ret; |
9 | LS tok = cast callF(tokenizer, s); |
10 | for ping (int i = 1; i < l(tok); i += 2) { |
11 | S t = tok.get(i); |
12 | if (isCurlyBraced(t)) { |
13 | t = unCurly(t); |
14 | set.add(t); |
15 | tok_allGroups_recursive_collect(tokenizer, t, set); |
16 | } |
17 | } |
18 | } |
Began life as a copy of #1021295
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: | #1022313 |
Snippet name: | tok_allGroups_recursive - TODO: could be done easier with bracketMap |
Eternal ID of this version: | #1022313/5 |
Text MD5: | 09b8060e44d66bb257368f859ae41c43 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-13 12:21:56 |
Source code size: | 501 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 348 / 380 |
Version history: | 4 change(s) |
Referenced in: | [show references] |