Libraryless. Click here for Pure Java version (2224L/14K/48K).
1 | !752 |
2 | |
3 | !include #1004681 // Concepts |
4 | |
5 | // a string as a concept |
6 | sclass CS extends Concept { |
7 | S s; |
8 | |
9 | *() {} |
10 | *(S *s) {} |
11 | } |
12 | |
13 | sclass Translation extends Concept { |
14 | Concept input, output; |
15 | |
16 | *() {} |
17 | *(Concept *input, Concept *output) {} |
18 | } |
19 | |
20 | sclass Configuration extends Concept { |
21 | new L<Translation> goodTranslations; |
22 | |
23 | *() {} |
24 | *(Translation... t) { |
25 | addAll(goodTranslations, t); |
26 | } |
27 | } |
28 | |
29 | static CS cs(S s) { |
30 | ret new CS(s); |
31 | } |
32 | |
33 | p { |
34 | clearConcepts(); |
35 | Configuration c = new Configuration( |
36 | new Translation(cs("AMD sucks"), cs("AMD ist doof")), |
37 | new Translation(cs("AMD rules"), cs("AMD ist super!"))); |
38 | saveConcepts(); |
39 | } |
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: | #1004685 |
Snippet name: | Translation Test |
Eternal ID of this version: | #1004685/1 |
Text MD5: | eec0d5f6ec3f40b839a7723137faad95 |
Transpilation MD5: | f8351135aecf65cbaaef0b1336ccfd24 |
Author: | stefan |
Category: | javax |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-08-28 21:19:37 |
Source code size: | 674 bytes / 39 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 555 / 628 |
Referenced in: | [show references] |