mighty-gerbils / gerbil

Gerbil Scheme
https://cons.io
GNU Lesser General Public License v2.1
1.15k stars 110 forks source link

Implement quasisyntax #468

Open fare opened 4 years ago

fare commented 4 years ago

Quasisyntax is yet unimplemented

corpix commented 3 years ago

For those who could come here from google, at this moment I see this error when using quasisyntax:

(user)> (quasisyntax (unsyntax 1))
; Evaluation aborted on Syntax Error 
*** ERROR IN ? 
--- Syntax Error: Bad syntax 
... form:   . 
iacore commented 6 months ago

what's quasisyntax

quasiquote?

> (quasiquote (unquote 1))
1
> (quasiquote (0 . (unquote 1)))
(0 . 1)

seems to work fine for me

vyzo commented 6 months ago

Quasisyntax is like quasiquote for AST processing, usually in the context of syntax-case.