Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

39
LINES

< > BotCompany Repo | #1004685 // Translation Test

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Libraryless. Click here for Pure Java version (2224L/14K/48K).

!752

!include #1004681 // Concepts

// a string as a concept
sclass CS extends Concept {
  S s;
  
  *() {}
  *(S *s) {}
}

sclass Translation extends Concept {
  Concept input, output;
  
  *() {}
  *(Concept *input, Concept *output) {}
}

sclass Configuration extends Concept {
  new L<Translation> goodTranslations;
  
  *() {}
  *(Translation... t) {
    addAll(goodTranslations, t);
  }
}

static CS cs(S s) {
  ret new CS(s);
}

p {
  clearConcepts();
  Configuration c = new Configuration(
    new Translation(cs("AMD sucks"), cs("AMD ist doof")),
    new Translation(cs("AMD rules"), cs("AMD ist super!")));
  saveConcepts();
}

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: 494 / 540
Referenced in: