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

!752

static boolean yo(Lisp snl, Map m) {
   new HashMap<S, Lisp> m2;
  if (snlMatch("XY < can < be < split < in < 2 < as < X < and < Y", snl, m2)) {
  S XY = m2.get("XY").raw();
  L<S> l = codeTokensOnly(javaTok(XY));
  if (l(l) != 2) ret false;
  putMatch(m, "X", l.get (0));
  putMatch(m, "Y", l.get(1));
  ret true;
}

if (snlMatch("X < is < an < adjective", snl, m2)) {
  S X = m2.get("X").raw();
  ret isYes (askSelf("is * an adjective", X));
}

ret false;
}

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: 533 / 556
Referenced in: #3000382 - Answer for ferdie (>> t = 1, f = 0)
#3000383 - Answer for funkoverflow (>> t=1, f=0 okay)