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

46
LINES

< > BotCompany Repo | #1008205 // Analyze method signatures Prelude 1 [WORKS]

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

Download Jar. Libraryless. Click here for Pure Java version (11131L/77K).

!7

static int linesToLookAt = 10;

sS rules = [[
  Fire once: (Text is X) => (for each token Y in X: contains token Y)
  Fire once: contains token "{" => It's a method
  Fire once: contains token ";" => It's a variable
]];

sS bla = [[
  wrqnygxvjvtpyiwc - Fire once: X
  wziyypnyayfphdxs - (X) => (Y)
  chkfkshhwshoauan - X => Y
  jfucnngqsmgrrgdm - for each token X in Y: Z
  yrzzucwknlfazxnb - Line X is Y.
  ljlpioyodpulgpid - Text is X
  egulideahjsbmivq - contains token X
  nizymecojotccctz - It's a method
  xwillohlixkdrakc - It's a variable
  qmyuofoszplvpdpt - Rule fired: X
]];

p {
  centerBigTTConsole();
  myTruth(bla);
  aiStandardHandlers();
  handler_jfucnngqsmgrrgdm();

  L<S> lines = toLines(getServerTranspilation(#1008203));
  lines = takeFirst(linesToLookAt, [S line : lines | eq(firstJavaToken(line), "static")]);
  //printNumberedLines(lines);
  for (S line : lines)
    if (lispBackwardRaw("yrzzucwknlfazxnb", quote(line)) == null)
      emit(lisp("yrzzucwknlfazxnb", aGlobalID(), quote(line)));
  L<Lisp> parsedRules = linesToLisp(rules);
  for (Lisp lineIs : lispTruth2("yrzzucwknlfazxnb")) {
    S id = lineIs.raw(0);
    S text = lineIs.unq(1);
    ThoughtSpace ts = getOrAddThoughtSpace(id);
    ts.addStatement(lisp("ljlpioyodpulgpid", quote(text)));
    ts.addStatements(parsedRules);
    processRulesAndDelete(ts, "wrqnygxvjvtpyiwc", "egulideahjsbmivq");
  }
  printThoughtSpaces_englishOnly();
}

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: #1008205
Snippet name: Analyze method signatures Prelude 1 [WORKS]
Eternal ID of this version: #1008205/32
Text MD5: d9d5b000db5a60f66f7f2bd38a91f625
Transpilation MD5: e50fdee21f4b3203ce1f1a25ec4772ce
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-30 17:42:21
Source code size: 1477 bytes / 46 lines
Pitched / IR pitched: No / No
Views / Downloads: 794 / 1453
Version history: 31 change(s)
Referenced in: