$ ./target/release/lisp0 sample/demo2.l0 at idx: 0 value: 10 at idx: 1 value: 4 at idx: 2 value: 21 at idx: 3 value: 2 at idx: 4 value: 1
https://files.mastodon.social/media_attachments/files/114/308/920/710/182/197/original/e244970aaf7b7cab.png
Now, since *I'm* the one writing this LISP, I do get to make some changes. The main thing I wanted to change, as it's the #1 thing that infuriates me writing LISP, is parentheses. This "LISP" has a syntax where each line (as separated by newlines or commas) implicitly has () around it. Meanwhile, {} and [] are shorthand, for
{x,y,z} => '((x)(y)(z))
[x,y,z] => (make-array [(x),(y),(z)])
In other words {} is functions (quoted lists) and [] is array literals.
Is this still a LISP? I don't care!
GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.
All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.