1 | static Lisp listToSNLTree(L list) {
|
2 | Lisp tree = lisp(snlCommaOp(l(list))); |
3 | for (O s : list) |
4 | if (s instanceof Lisp) |
5 | tree.add((Lisp) s); |
6 | else if (s instanceof S) |
7 | tree.add(quote((S) s)); |
8 | else |
9 | tree.add("?");
|
10 | ret tree; |
11 | } |
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: | 870 / 823 |
| Referenced in: | [show references] |