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

1  
!7
2  
3  
static int linesToLookAt = 10;
4  
5  
sS rules = [[
6  
  Fire once: (Text is X) => (for each token Y in X: contains token Y)
7  
  Fire once: contains token "{" => It's a method
8  
  Fire once: contains token ";" => It's a variable
9  
]];
10  
11  
sS bla = [[
12  
  wrqnygxvjvtpyiwc - Fire once: X
13  
  wziyypnyayfphdxs - (X) => (Y)
14  
  chkfkshhwshoauan - X => Y
15  
  jfucnngqsmgrrgdm - for each token X in Y: Z
16  
  yrzzucwknlfazxnb - Line X is Y.
17  
  ljlpioyodpulgpid - Text is X
18  
  egulideahjsbmivq - contains token X
19  
  nizymecojotccctz - It's a method
20  
  xwillohlixkdrakc - It's a variable
21  
  qmyuofoszplvpdpt - Rule fired: X
22  
]];
23  
24  
p {
25  
  centerBigTTConsole();
26  
  myTruth(bla);
27  
  aiStandardHandlers();
28  
  handler_jfucnngqsmgrrgdm();
29  
30  
  L<S> lines = toLines(getServerTranspilation(#1008203));
31  
  lines = takeFirst(linesToLookAt, [S line : lines | eq(firstJavaToken(line), "static")]);
32  
  //printNumberedLines(lines);
33  
  for (S line : lines)
34  
    if (lispBackwardRaw("yrzzucwknlfazxnb", quote(line)) == null)
35  
      emit(lisp("yrzzucwknlfazxnb", aGlobalID(), quote(line)));
36  
  L<Lisp> parsedRules = linesToLisp(rules);
37  
  for (Lisp lineIs : lispTruth2("yrzzucwknlfazxnb")) {
38  
    S id = lineIs.raw(0);
39  
    S text = lineIs.unq(1);
40  
    ThoughtSpace ts = getOrAddThoughtSpace(id);
41  
    ts.addStatement(lisp("ljlpioyodpulgpid", quote(text)));
42  
    ts.addStatements(parsedRules);
43  
    processRulesAndDelete(ts, "wrqnygxvjvtpyiwc", "egulideahjsbmivq");
44  
  }
45  
  printThoughtSpaces_englishOnly();
46  
}

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: 793 / 1453
Version history: 31 change(s)
Referenced in: [show references]