!include #1004681 // Concepts sclass SSnippet extends Concept { S snippetID; S text; long grabbedWhen; } sclass JavaTok extends Concept { new Ref<SSnippet> onSnippet; S text; L<S> tok; } sclass Substring extends Concept { new Ref<SSnippet> from; int startIndex, endIndex; // text of the substring S text() { ret substring(fullText(), startIndex, endIndex); } // text this was taken from S fullText() { ret from.get().text; } } sclass JavaToken extends Substring { new Ref<JavaTok> javaTok; int index; int charIndex; *() {} *(JavaTok javaTok, int *index, int *charIndex) { this.javaTok.set(javaTok); from.set(javaTok.onSnippet); startIndex = charIndex; endIndex = startIndex+l(javaTok.tok.get(index)); } S token() { ret text(); } }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1004828 |
Snippet name: | Java Analysis AI Classes |
Eternal ID of this version: | #1004828/1 |
Text MD5: | 7ffb77abbd8e9bc2a8334591b49a2cdd |
Author: | stefan |
Category: | javax / a.i. |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-09-03 16:02:37 |
Source code size: | 865 bytes / 46 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 400 / 983 |
Referenced in: | [show references] |