Libraryless. Click here for Pure Java version (2827L/18K).
1 | sclass PerfectTokenList extends AbstractList<S> { |
2 | LogNArray<Token> list = new LogNArray; |
3 | new MultiMap<S, Token> index; |
4 | |
5 | sclass Token { |
6 | Token prev, next; |
7 | S text; |
8 | } |
9 | |
10 | sS text(Token t) { ret t == null ? null : t.text; } |
11 | |
12 | public S get(int i) { ret text(list.get(i)); } |
13 | public int size() { ret l(list); } |
14 | } |
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: | #1025139 |
Snippet name: | PerfectTokenList [dev.] |
Eternal ID of this version: | #1025139/4 |
Text MD5: | 5503633ce90247561cad20806abdf995 |
Transpilation MD5: | ed4e66052334519b50a27db02d3e977d |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-08 21:40:48 |
Source code size: | 341 bytes / 14 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 226 / 310 |
Version history: | 3 change(s) |
Referenced in: | [show references] |