Mercerenies / gdlisp

Lisp on the Godot platform
GNU General Public License v3.0
141 stars 1 forks source link

Nested Quasiquotes #40

Closed Mercerenies closed 3 years ago

Mercerenies commented 3 years ago

Oh boy.

``(,a)

This should be fine and produce the literal list (quasiquote ((unquote a))). Currently, the quasiquoting engine doesn't understand nesting, so the outer quasiquote tries to evaluate the thing inside the inner comma.

Mercerenies commented 3 years ago

Adding blocks-bootstrapping tag. We can technically work around it, but the macros get a lot easier to write if we don't have to worry about this issue.