4 ms·
There appear to be bugs in it. I tried: (cdr '(ddd a xxx)) And it said: Error: The expression is not balanced. Remove -1 parentheses. I tried adding a
by cabalamat 17y ago
There appear to be bugs in it. I tried:
(cdr '(ddd a xxx))
And it said:
Error: The expression is not balanced. Remove -1 parentheses.
I tried adding a parenthesis (which I assume is the same as removing -1 of them), without success.
- gus_massa 17y agoThis interpreter does not understand quote or '. When you write (cdr '(ddd a xxx)) the interpreter reads ( cdr '( ddd a xxx ) ) | \------ '( is a token For example, this works: (cdr (list 1 2 3))
- cabalamat 17y agoThis however does not: (cdr (list ddd a xxx)) If the language doesn't allow lists containing things other than integers, it's not really a lisp.