static Lisp listToSNLTree(L list) { Lisp tree = lisp(snlCommaOp(l(list))); for (O s : list) if (s instanceof Lisp) tree.add((Lisp) s); else if (s instanceof S) tree.add(quote((S) s)); else tree.add("?"); ret tree; }
Began life as a copy of #1002788
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: | #1002789 |
Snippet name: | listToSNLTree - converts a string or lisp list to a SNL representation (new version) |
Eternal ID of this version: | #1002789/1 |
Text MD5: | 8d30476ae444104c7eca6ba5cc91d512 |
Author: | stefan |
Category: | eleu / nl |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2016-02-26 00:43:53 |
Source code size: | 261 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 645 / 588 |
Referenced in: | [show references] |