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

38
LINES

< > BotCompany Repo | #1008197 // Thought space handling [shortened, WORKS]

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

Libraryless. Click here for Pure Java version (10879L/74K/248K).

!7

sS script1 = "Assert (True).";
sS script2 = "Assert (False).";

sS script = [[
  Make an empty thought space X.
  Assert (X is empty).
  Add (God is good) to X.
  Assert (Not (X is empty)).
  Add (Remove (God is good)) to X.
  Apply always rules in X.
  Assert (X is empty).
]];

sS bla = [[
  // concepts
  zivsiiacmvqrolto - True
  zqbbvhdeuzyhewed - False
  jamvyfwypzbptvle - Make an empty thought space X.
  matnhiruhwprdiir - Add (X) to Y.
  aaedrmcbfcsubkkf - Apply rule (X) to Y.
  bcypplfticghlkxy - Apply always rules in X.
  yvmxaacduvvomgqi - X is empty
  rzryqdohxtczvzgn - Assert (X).
  wynynoujiakixjus - Not (X)
  chjllkocfhtwcgoj - Remove (X)
]];

p {
  myTruth(bla);
  aiStandardHandlers();

  assertLispScriptSucceeds(script1);
  assertLispScriptFails(script2);
  assertLispScriptSucceeds(print(xyzToNewIDs(script)));
  print("OK");
}

Author comment

Began life as a copy of #1008185

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: #1008197
Snippet name: Thought space handling [shortened, WORKS]
Eternal ID of this version: #1008197/4
Text MD5: 3b39be95c1c72b0b63d6985e6a6f471f
Transpilation MD5: 143a88634e780894638eaaf2d55fcf67
Author: stefan
Category: javax / a.i.
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-30 00:06:23
Source code size: 894 bytes / 38 lines
Pitched / IR pitched: No / No
Views / Downloads: 487 / 594
Version history: 3 change(s)
Referenced in: [show references]