Troubles with evaluating S-Expressions

I'm trying to make a custom Lisp parser (so I can understand how ASTs work), and I've made decent progress on my S-Expression parser. However, the evaluation is not working how I intended.


The treemap to turn symbols into blocks works, and something simple like (+ 2 3) can successfully run. However, (+ (* 4 2) 3) can't run successfully, instead reporting a mess of a list.

What am I doing wrong?

Well for one thing,
Untitled script pic (3)
doesn't make sense. (4 2) isn't an S-expression. Its head isn't a procedure. So I think your whole parsing theory needs work.

Oh. I see. Thanks.

I'll rewrite it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.