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).

1  
!7
2  
3  
!include #1008133 // MyTruth
4  
5  
sS concepts = [[
6  
  mbyttdugcxbjayki - X is a sentence.
7  
  kdcwxggxvwljzqcd - X is a verb.
8  
  lwsqdttlqfrtghme - X is a noun.
9  
]];
10  
11  
p {
12  
  useConceptsAndStatements(concepts, "");
13  
  loadMyTruth();
14  
  printLispStatements();
15  
  
16  
  showControlButtons(
17  
    jbutton("Add sentence...", f addSentence),
18  
    jbutton("Add verb...", f addVerb),
19  
    jbutton("Add noun...", f addNoun));
20  
}
21  
22  
svoid addSentence {
23  
  showTextFieldForm("Add sentence", "Sentence", voidfunc(S text) {
24  
    fromUser("mbyttdugcxbjayki", text);
25  
  });
26  
}
27  
28  
svoid addVerb {
29  
  showTextFieldForm("Add verb", "Verb", voidfunc(S text) {
30  
    fromUser("kdcwxggxvwljzqcd", text);
31  
  });
32  
}
33  
34  
svoid addNoun {
35  
  showTextFieldForm("Add noun", "Noun", voidfunc(S text) {
36  
    fromUser("lwsqdttlqfrtghme", text);
37  
  });
38  
}

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: 474 / 1012
Version history: 8 change(s)
Referenced in: [show references]