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

20
LINES

< > BotCompany Repo | #1002725 // Engine

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

Libraryless. Click here for Pure Java version (3764L/24K/78K).

1  
!752
2  
3  
static boolean yo(Lisp snl, Map m) {
4  
   new HashMap<S, Lisp> m2;
5  
  if (snlMatch("XY < can < be < split < in < 2 < as < X < and < Y", snl, m2)) {
6  
  S XY = m2.get("XY").raw();
7  
  L<S> l = codeTokensOnly(javaTok(XY));
8  
  if (l(l) != 2) ret false;
9  
  putMatch(m, "X", l.get (0));
10  
  putMatch(m, "Y", l.get(1));
11  
  ret true;
12  
}
13  
14  
if (snlMatch("X < is < an < adjective", snl, m2)) {
15  
  S X = m2.get("X").raw();
16  
  ret isYes (askSelf("is * an adjective", X));
17  
}
18  
19  
ret false;
20  
}

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: #1002725
Snippet name: Engine
Eternal ID of this version: #1002725/1
Text MD5: 4e3b65b44725753b02a7350c4b72e28f
Transpilation MD5: 6860f2966cd5ddb6c6ecb148fcb55f14
Author: stefan
Category: eleu / nl
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-02-18 02:23:56
Source code size: 484 bytes / 20 lines
Pitched / IR pitched: No / No
Views / Downloads: 534 / 557
Referenced in: [show references]