Libraryless. Click here for Pure Java version (5044L/29K).
1 | svoid tok_collectTransformers(LS tok, LS out, S keyword default "meta-transform") {
|
2 | int i = -1; |
3 | while ((i = jfind(tok, i+1, keyword + " {")) >= 0) {
|
4 | int iOpening = indexOf(tok, i, "{");
|
5 | int iClosing = findEndOfBracketPart(tok, iOpening)-1; |
6 | add(out, joinSubList(tok, iOpening+2, iClosing-1)); |
7 | clearTokens_reTok(tok, i, iClosing+1); |
8 | } |
9 | } |
Began life as a copy of #1020932
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025379 |
| Snippet name: | tok_collectTransformers |
| Eternal ID of this version: | #1025379/2 |
| Text MD5: | 881d1be0c10fb96d6eed401b6be5e167 |
| Transpilation MD5: | aa0c2a8fe95b131abd68a57704372701 |
| Author: | stefan |
| Category: | javax / transpiling |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-10-06 21:35:49 |
| Source code size: | 364 bytes / 9 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 496 / 627 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |