Libraryless. Click here for Pure Java version (4911L/31K/106K).
1 | !7 |
2 | |
3 | sclass A { |
4 | A b, c; |
5 | S bla; |
6 | |
7 | *() {} |
8 | *(S *bla) {} |
9 | } |
10 | |
11 | p { |
12 | structure_checkTokenCount = true; |
13 | |
14 | A c = new A("bla"); |
15 | A a = new A("yo"); |
16 | A b = new A("what's up"); |
17 | c.b = a; |
18 | a.b = b; |
19 | a.c = new A; |
20 | b.b = a; |
21 | |
22 | S sc, ssc; |
23 | |
24 | print(sc = structure(c)); |
25 | print(structure(b)); |
26 | print(ssc = structure(unstructure(structure(c)))); |
27 | print(structure(unstructure(structure(b)))); |
28 | |
29 | assertEquals(sc, ssc); |
30 | print("OK"); |
31 | } |
Began life as a copy of #1002708
download show line numbers debug dex old transpilations
Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, sawdedvomwva, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003038 |
Snippet name: | Test structure/unstructure with backrefs / check token count |
Eternal ID of this version: | #1003038/2 |
Text MD5: | 72f0d3a15db5825ba7c0be070318f1e8 |
Transpilation MD5: | 154a5fa244fd4c6b814aa9474fb0e82f |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-04 14:15:55 |
Source code size: | 470 bytes / 31 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 617 / 761 |
Version history: | 1 change(s) |
Referenced in: | [show references] |