Libraryless. Click here for Pure Java version (1301L/10K/31K).
!7 p { testFunc("print;", "print;"); testFunc("print(;", "print();"); testFunc("print(x(;", "print(x());"); testFunc("print(x(z, y;", "print(x(z, y));"); testFunc("print(x(z, y);", "print(x(z, y));"); testFunc("for (i = 1; i; i) {}", "for (i = 1; i; i) {}"); testFunc("for (i = x(; i; i) {}", "for (i = x(); i; i) {}"); testFunc("for ping (Set<S> seen = new LinkedHashSet; l(set) < 100; ) {", "for ping (Set<S> seen = new LinkedHashSet; l(set) < 100; ) {"); print("OK"); } svoid testFunc(S in, S out) { assertEqualsVerbose(in + " => " + out, out, tok_autoCloseBrackets(in)); }
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1006346 |
Snippet name: | Auto-Add Closing Brackets Algorithm [Test tok_autoCloseBrackets, WORKS] |
Eternal ID of this version: | #1006346/2 |
Text MD5: | e2fe09874dff039b88680db9a62b605b |
Transpilation MD5: | 005c8efedd35f1cefb330e4f8bd47905 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-08-11 16:39:05 |
Source code size: | 616 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 1201 / 1311 |
Version history: | 1 change(s) |
Referenced in: | [show references] |