1 | static LS ai_splitConjoinedRules(LS l) {
|
2 | new LS out; |
3 | for (S s : unnull(l)) {
|
4 | LS split = splitAtDoubleArrow(javaTokWithBrackets(s)); |
5 | if (l(split) > 2 && containsDoubleArrowAtBeginningOfLine(s)) {
|
6 | for (int i = 0; i < l(split)-1; i++) |
7 | out.add(split.get(i) + "\n=> " + split.get(i+1)); |
8 | } else |
9 | out.add(s); |
10 | } |
11 | ret out; |
12 | } |
Began life as a copy of #1021274
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: | #1021355 |
| Snippet name: | ai_splitConjoinedRules - "a => b => c" to "a => b" and "b => c" |
| Eternal ID of this version: | #1021355/3 |
| Text MD5: | c22b7a418cb9a5066b4b6241ae70684a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-09 18:21:37 |
| Source code size: | 364 bytes / 12 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 495 / 529 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |