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

38
LINES

< > BotCompany Repo | #1008153 // Parse Sentences [dev.]

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

Download Jar. Libraryless. Click here for Pure Java version (10729L/75K).

!7

!include #1008133 // MyTruth

sS concepts = [[
  mbyttdugcxbjayki - X is a sentence.
  kdcwxggxvwljzqcd - X is a verb.
  lwsqdttlqfrtghme - X is a noun.
]];

p {
  useConceptsAndStatements(concepts, "");
  loadMyTruth();
  printLispStatements();
  
  showControlButtons(
    jbutton("Add sentence...", f addSentence),
    jbutton("Add verb...", f addVerb),
    jbutton("Add noun...", f addNoun));
}

svoid addSentence {
  showTextFieldForm("Add sentence", "Sentence", voidfunc(S text) {
    fromUser("mbyttdugcxbjayki", text);
  });
}

svoid addVerb {
  showTextFieldForm("Add verb", "Verb", voidfunc(S text) {
    fromUser("kdcwxggxvwljzqcd", text);
  });
}

svoid addNoun {
  showTextFieldForm("Add noun", "Noun", voidfunc(S text) {
    fromUser("lwsqdttlqfrtghme", text);
  });
}

download  show line numbers  debug dex  old transpilations   

Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

-
Snippet ID: #1008153
Snippet name: Parse Sentences [dev.]
Eternal ID of this version: #1008153/9
Text MD5: 13386411d121170839585789c1a3d9db
Transpilation MD5: 8a0a4d6ad7e68aacff188eafd22721f3
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-29 15:15:13
Source code size: 823 bytes / 38 lines
Pitched / IR pitched: No / No
Views / Downloads: 453 / 959
Version history: 8 change(s)
Referenced in: