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

13
LINES

< > BotCompany Repo | #1007861 // lispTranslateToJava

JavaX fragment (include)

static Lisp lispTranslateToJava(Lisp x, final SS map) {
  ret lispMap_after(x, func(Lisp l) {
    S s = map.get(l.head);
    if (s != null)
      ret lisp(s, l.args);
    if (!l.isLeaf()) {
      warn("No leaf: " + l);
      ret lisp(quote(clUnparse(l)));
    }
    if (isInteger(l.head)) ret lisp(l.head);
    else ret lisp(quote(l.head));
  });
}

Author comment

Began life as a copy of #1007860

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: #1007861
Snippet name: lispTranslateToJava
Eternal ID of this version: #1007861/5
Text MD5: 3ba75ee15c9a1766a533083f05334a7d
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-04-12 00:44:18
Source code size: 360 bytes / 13 lines
Pitched / IR pitched: No / No
Views / Downloads: 566 / 563
Version history: 4 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)